summary refs log tree commit diff
diff options
context:
space:
mode:
authorWinter <winter@winter.cafe>2022-11-09 22:57:32 -0500
committerWinter <winter@winter.cafe>2022-11-21 15:00:08 -0500
commitc0e7124bcc4421d5ce9d2e5d4d0f7eec7ce798cc (patch)
tree2253c86c3ba4ecabac421aac12e7c3801b63b24a
parent68d5b19fca6f18bb2df7b287eb512b1c7b2c335a (diff)
npmHooks.npmConfigHook: add some missing quotes around variable assignments
-rw-r--r--pkgs/build-support/node/build-npm-package/hooks/npm-config-hook.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/build-support/node/build-npm-package/hooks/npm-config-hook.sh b/pkgs/build-support/node/build-npm-package/hooks/npm-config-hook.sh
index accf5abd5b22a..d2906d28ca2f3 100644
--- a/pkgs/build-support/node/build-npm-package/hooks/npm-config-hook.sh
+++ b/pkgs/build-support/node/build-npm-package/hooks/npm-config-hook.sh
@@ -5,7 +5,7 @@ npmConfigHook() {
 
     echo "Configuring npm"
 
-    export HOME=$TMPDIR
+    export HOME="$TMPDIR"
     export npm_config_nodedir="@nodeSrc@"
 
     local -r cacheLockfile="$npmDeps/package-lock.json"
@@ -50,12 +50,12 @@ npmConfigHook() {
     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"