Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
installer: don't assume bash is installed
Use `/bin/sh` instead of `bash` when running the relocate.sh script.
  • Loading branch information
bnoordhuis committed Aug 1, 2012
1 parent 285a46d commit cccce60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/installer.js
Expand Up @@ -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
Expand Down

0 comments on commit cccce60

Please sign in to comment.