installer: don't assume bash is installed

Use `/bin/sh` instead of `bash` when running the relocate.sh script.
pull/24503/head
Ben Noordhuis 2012-08-01 13:36:56 +02:00
parent 285a46d1ca
commit cccce60b3e
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ function remove(files) {
function shebang(line, npmDir) { function shebang(line, npmDir) {
var script = JSON.stringify(path.join(npmDir, 'scripts/relocate.sh')); var script = JSON.stringify(path.join(npmDir, 'scripts/relocate.sh'));
var bin = JSON.stringify(path.join(npmDir, 'bin/npm-cli.js')); 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 // Run every command in queue, one-by-one