fix(core): cosmetics

This commit is contained in:
2021-11-26 15:17:52 +01:00
parent d7247add7e
commit 20a2804924
8 changed files with 393 additions and 179 deletions

View File

@ -1,2 +1,2 @@
export * from './smartshell.classes.smartshell';
export { which } from './smartshell.plugins';
export { which } from './smartshell.plugins';

View File

@ -82,7 +82,7 @@ export class ShellEnv {
sourceString = sourceString + `source ${sourceFilePath} && `;
}
// deal with avaiable path
// deal with available path
let pathString = 'PATH=$PATH';
for (const pathDir of this.pathDirArray) {
pathString += `:${pathDir}`;

View File

@ -59,6 +59,7 @@ export class Smartshell {
const spawnlogInstance = new ShellLog();
const execChildProcess = cp.spawn(commandToExecute, [], {
shell: true,
cwd: process.cwd(),
env: process.env,
detached: false,
});