check for node in path
This commit is contained in:
@@ -33,6 +33,12 @@ for script in "${scripts[@]}"; do
|
||||
fi
|
||||
done
|
||||
|
||||
# setup_infra requires node to be in path for the root user
|
||||
if ! sudo -n "node" 2>/dev/null; then
|
||||
echo "node is not in PATH for the root user. Create a symlink to /usr/bin/node possibly"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
image_missing=""
|
||||
|
||||
images=$(node -e "var i = require('${SOURCE_DIR}/src/infra_version.js'); console.log(Object.keys(i.images).map(function (x) { return i.images[x].tag; }).join('\n'));"; echo $TEST_IMAGE)
|
||||
|
||||
Reference in New Issue
Block a user