mirror of https://github.com/nodejs/node.git
installer: don't assume bash is installed
Use `/bin/sh` instead of `bash` when running the relocate.sh script.pull/24503/head
parent
285a46d1ca
commit
cccce60b3e
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue