File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,8 @@ node_version=$(curl --silent --get --data-urlencode "range=${semver_range}" http
5
5
node_url=" http://s3pository.heroku.com/node/v$node_version /node-v$node_version -linux-x64.tar.gz"
6
6
curl $node_url -s -o - | tar xzf - -C $( pwd)
7
7
mv node-v${node_version} -linux-x64 node
8
+ ls node/bin
9
+ export PATH=" $( pwd) /node/bin:${PATH} "
8
10
mkdir -p ${SERVICE} /bin
9
- install $( ls node/bin/* ) ${SERVICE} /bin
10
11
11
12
exit $?
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
- if ! command -v node 2>&1 > /dev/null; then
3
+ if ! command -v node 2>&1 > /dev/null || ! command -v npm 2>&1 ; then
4
4
exit ${ERROR}
5
5
fi
6
6
7
+ npm > /dev/null 2>&1
8
+ if (( $? != 0 )) ; then
9
+ exit $?
10
+ fi
11
+
12
+ node -v > /dev/null 2>&1
13
+ if (( $? != 0 )) ; then
14
+ exit $?
15
+ fi
16
+
You can’t perform that action at this time.
0 commit comments