Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2020-10-28 20:50:23 +0300
committerisaacs <i@izs.me>2020-10-28 20:50:23 +0300
commit041a39031c7d86a67e1065ba5a9e056ec8159d3b (patch)
treefbe65d3aabc21bef4250189abae8ac938393aa0a
parent84d71236369d9c7f6ff84320461ab10bed0fe7a3 (diff)
use sh as default unix shell, not bashisaacs/bash-to-sh
-rw-r--r--lib/utils/config.js2
-rw-r--r--test/lib/utils/config.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/utils/config.js b/lib/utils/config.js
index 9af6289ff..f9de6e9a7 100644
--- a/lib/utils/config.js
+++ b/lib/utils/config.js
@@ -21,7 +21,7 @@ const editor = process.env.EDITOR ||
(isWindows ? 'notepad.exe' : 'vi')
const shell = isWindows ? process.env.ComSpec || 'cmd'
- : process.env.SHELL || 'bash'
+ : process.env.SHELL || 'sh'
const { tmpdir, networkInterfaces } = require('os')
const getLocalAddresses = () => {
diff --git a/test/lib/utils/config.js b/test/lib/utils/config.js
index 293e68c00..e8133eecb 100644
--- a/test/lib/utils/config.js
+++ b/test/lib/utils/config.js
@@ -138,7 +138,7 @@ t.test('no shell on posix', t => {
'@npmcli/ci-detect': () => false,
'../../../lib/utils/is-windows.js': false
})
- t.equal(config.defaults.shell, 'bash')
+ t.equal(config.defaults.shell, 'sh')
t.end()
})