-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap.sh
More file actions
36 lines (29 loc) · 703 Bytes
/
bootstrap.sh
File metadata and controls
36 lines (29 loc) · 703 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/sh
NODE=`which node`
NPM=`which npm`
YARN=`which yarn`
JQ=`which jq`
echo $NODE $NPM $YARN $JQ
if [[ ! -z "$NODE" ]]; then
echo "Node is installed and it's version is: `$NODE --version`"
else
echo "Please, install node.js."
exit 1
fi
if [[ ! -z "$NPM" ]]; then
echo "NPM is installed and it's version is: `$NPM --version`"
else
echo "Please, install npm."
exit 1
fi
if [[ ! -z "$YARN" ]]; then
echo "yarn is installed and it's version is: `$YARN --version`"
else
echo "yarn is optional."
fi
if [[ ! -z "$JQ" ]]; then
echo "jq is installed and it's version is: `$JQ --version`"
else
echo "jq is optional and used only for publish purpose."
fi
npm install -g gitbook-cli