npmHooks.npmConfigHook: add some missing quotes around variable assignments

Changed files
+3 -3
pkgs
build-support
node
build-npm-package
+3 -3
pkgs/build-support/node/build-npm-package/hooks/npm-config-hook.sh
···
echo "Configuring npm"
-
export HOME=$TMPDIR
+
export HOME="$TMPDIR"
export npm_config_nodedir="@nodeSrc@"
local -r cacheLockfile="$npmDeps/package-lock.json"
···
local cachePath
if [ -z "${makeCacheWritable-}" ]; then
-
cachePath=$npmDeps
+
cachePath="$npmDeps"
else
echo "Making cache writable"
cp -r "$npmDeps" "$TMPDIR/cache"
chmod -R 700 "$TMPDIR/cache"
-
cachePath=$TMPDIR/cache
+
cachePath="$TMPDIR/cache"
fi
npm config set cache "$cachePath"