mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
install: set default shell to /bin/bash
This commit is contained in:
1 parent
eff6f28c7f
commit
76be3ebbb1
1 file changed
+1
-1
+1
-1
@@ -214,7 +214,7 @@ apt-get -qq update && apt-get -q install -y mongodb-org`, { retry: true }],
|
|||||||
return 'retry';
|
return 'retry';
|
||||||
}
|
}
|
||||||
setenv('PATH', `/root/.nvm/versions/node/v${ver}/bin:${__env.PATH}`);
|
setenv('PATH', `/root/.nvm/versions/node/v${ver}/bin:${__env.PATH}`);
|
||||||
const shell = __env.SHELL.split('/');
|
const shell = __env.SHELL ? __env.SHELL.split('/') : ['bash'];
|
||||||
const rc = `/root/.${shell[shell.length - 1]}rc`;
|
const rc = `/root/.${shell[shell.length - 1]}rc`;
|
||||||
if (!fs.exist(rc)) fs.writefile(rc, source_nvm);
|
if (!fs.exist(rc)) fs.writefile(rc, source_nvm);
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in new issue
Block a user