Browse Source

installer: don't assume bash is installed

Use `/bin/sh` instead of `bash` when running the relocate.sh script.
v0.8.7-release
Ben Noordhuis 13 years ago
parent
commit
cccce60b3e
  1. 2
      tools/installer.js

2
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

Loading…
Cancel
Save