diff options
author | Alexis Campailla <alexis@janeasystems.com> | 2016-01-15 16:40:35 +0300 |
---|---|---|
committer | Rebecca Turner <me@re-becca.org> | 2016-01-21 04:08:40 +0300 |
commit | 00720db2c326cf8f968c662444a4575ae8c3020a (patch) | |
tree | 75f39465bc513d45c7cee6266f3678ace0109213 /bin | |
parent | b463e3424b296cfc4bd384fc8bfe0e2329649164 (diff) |
node-gyp-bin: fix custom node-gyp env var quoting
npm sets node_config_node_gyp without quotes, so its usage should be
quoted. Indeed, it is a better practice to define environment variables
that contain paths without quotes and quote their usage.
PR-URL: https://github.com/npm/npm/pull/11158
Credit: @orangemocha
Reviewed-By: @othiym23
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/node-gyp-bin/node-gyp.cmd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/node-gyp-bin/node-gyp.cmd b/bin/node-gyp-bin/node-gyp.cmd index ea613d3ad..1ef2ae0c6 100755 --- a/bin/node-gyp-bin/node-gyp.cmd +++ b/bin/node-gyp-bin/node-gyp.cmd @@ -1,5 +1,5 @@ if not defined npm_config_node_gyp (
node "%~dp0\..\..\node_modules\node-gyp\bin\node-gyp.js" %*
) else (
- node %npm_config_node_gyp% %*
+ node "%npm_config_node_gyp%" %* )
|