diff options
| author | Silvan Mosberger <contact@infinisil.com> | 2022-03-11 20:00:00 +0100 |
|---|---|---|
| committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2022-03-18 15:53:10 +0000 |
| commit | dcce69b636ef68bc0b422c04a97a7ff787246d56 (patch) | |
| tree | d231a16a510aec3d236398b34d8429f659f72991 | |
| parent | Merge pull request #164484 from NixOS/backport-164467-to-release-21.11 (diff) | |
| download | nixpkgs-origin/backport-163694-to-release-21.11.tar.gz | |
nodejs: Fix setup-hook addNodePath quotingorigin/backport-163694-to-release-21.11
The argument to addNodePath previously wasn't being quoted, leading to
problems when the argument contains characters interpreted specially by
bash
(cherry picked from commit e975c5650174f472bad14e946cdb34e5e1ea6874)
| -rw-r--r-- | pkgs/development/web/nodejs/setup-hook.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/web/nodejs/setup-hook.sh b/pkgs/development/web/nodejs/setup-hook.sh index 18368588c2af..878e0693a1e6 100644 --- a/pkgs/development/web/nodejs/setup-hook.sh +++ b/pkgs/development/web/nodejs/setup-hook.sh @@ -1,5 +1,5 @@ addNodePath () { - addToSearchPath NODE_PATH $1/lib/node_modules + addToSearchPath NODE_PATH "$1/lib/node_modules" } addEnvHooks "$hostOffset" addNodePath |
