readd logging

This commit is contained in:
2016-12-15 00:06:11 +01:00
parent 0f384a799a
commit 40a00cb1b0
4 changed files with 6 additions and 4 deletions

View File

@ -22,8 +22,8 @@ export let bash = (commandArg: string, retryArg: number = 2, bareArg: boolean =
let exitCode: number
let stdOut: string
let execResult
let failOnError: boolean = true;
if(retryArg === -1) {
let failOnError: boolean = true
if (retryArg === -1) {
failOnError = false
retryArg = 0
}

View File

@ -30,6 +30,7 @@ export let install = (versionArg) => {
for (let npmTool of configArg.globalNpmTools) {
plugins.beautylog.info(`Checking for global "${npmTool}"`)
let whichOutput = bashNoError(`which ${npmTool}`)
console.log(whichOutput)
let toolAvailable: boolean = !(/not\sfound/.test(whichOutput))
if (toolAvailable) {
plugins.beautylog.log(`Tool ${npmTool} is available`)