remove bashBare

This commit is contained in:
2017-05-15 16:07:05 +02:00
parent 3505b2effc
commit b6c06e2b17
5 changed files with 37 additions and 54 deletions

View File

@@ -72,7 +72,7 @@ export let bash = async (commandArg: string, retryArg: number = 2, bareArg: bool
if (!bareArg) {
execResult = await npmciSmartshell.exec(commandArg)
} else {
execResult = await plugins.smartshell.exec(commandArg)
execResult = await npmciSmartshell.exec(commandArg)
}
// determine how bash reacts to error and success
@@ -99,13 +99,6 @@ export let bash = async (commandArg: string, retryArg: number = 2, bareArg: bool
return execResult.stdout
}
/**
* bashBare allows usage of bash without sourcing any files like nvm
*/
export let bashBare = async (commandArg: string, retryArg: number = 2): Promise<string> => {
return await bash(commandArg, retryArg, true)
}
/**
* bashNoError allows executing stuff without throwing an error
*/