diff options
author | isaacs <i@izs.me> | 2020-10-28 20:50:23 +0300 |
---|---|---|
committer | isaacs <i@izs.me> | 2020-10-28 20:50:23 +0300 |
commit | 041a39031c7d86a67e1065ba5a9e056ec8159d3b (patch) | |
tree | fbe65d3aabc21bef4250189abae8ac938393aa0a | |
parent | 84d71236369d9c7f6ff84320461ab10bed0fe7a3 (diff) |
use sh as default unix shell, not bashisaacs/bash-to-sh
-rw-r--r-- | lib/utils/config.js | 2 | ||||
-rw-r--r-- | test/lib/utils/config.js | 2 |
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() }) |