This commit is contained in:
2017-03-11 01:34:03 +01:00
parent 254f7dcfa6
commit ba41776c0e
4 changed files with 15 additions and 14 deletions

View File

@ -83,13 +83,13 @@ export let bash = async (commandArg: string, retryArg: number = 2, bareArg: bool
/**
* bashBare allows usage of bash without sourcing any files like nvm
*/
export let bashBare = (commandArg: string, retryArg: number = 2): Promise<string> => {
return bash(commandArg, retryArg, true)
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
*/
export let bashNoError = (commandArg: string): Promise<string> => {
return bash(commandArg, -1)
export let bashNoError = async (commandArg: string): Promise<string> => {
return await bash(commandArg, -1)
}

View File

@ -42,7 +42,7 @@ let docker = async () => {
let dockerRegexResultArray = dockerRegex.exec(process.env.NPMCI_LOGIN_DOCKER)
let username = dockerRegexResultArray[1]
let password = dockerRegexResultArray[2]
plugins.shelljs.exec('docker login -u ' + username + ' -p ' + password)
await bash('docker login -u ' + username + ' -p ' + password)
return
}