diff --git a/pkgs/build-support/node/fetch-yarn-deps/yarn-config-hook.sh b/pkgs/build-support/node/fetch-yarn-deps/yarn-config-hook.sh index 7d8c70d270082b..c2ee0972d156f5 100644 --- a/pkgs/build-support/node/fetch-yarn-deps/yarn-config-hook.sh +++ b/pkgs/build-support/node/fetch-yarn-deps/yarn-config-hook.sh @@ -2,8 +2,8 @@ yarnConfigHook(){ echo "Executing yarnConfigHook" # Use a constant HOME directory - mkdir -p /tmp/home - export HOME=/tmp/home + mkdir -p "$TMP/home" + export HOME="$TMP/home" if [[ -n "$yarnOfflineCache" ]]; then offlineCache="$yarnOfflineCache" fi