From cccce60b3e9ef2c0cafcc5c5248423900d424a66 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Wed, 1 Aug 2012 13:36:56 +0200 Subject: [PATCH] installer: don't assume bash is installed Use `/bin/sh` instead of `bash` when running the relocate.sh script. --- tools/installer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/installer.js b/tools/installer.js index 092179dc27..46b84d49d2 100644 --- a/tools/installer.js +++ b/tools/installer.js @@ -53,7 +53,7 @@ function remove(files) { function shebang(line, npmDir) { var script = JSON.stringify(path.join(npmDir, 'scripts/relocate.sh')); var bin = JSON.stringify(path.join(npmDir, 'bin/npm-cli.js')); - queue.push('bash ' + script + ' ' + line); + queue.push('/bin/sh ' + script + ' ' + line); } // Run every command in queue, one-by-one