readd logging
This commit is contained in:
@ -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
|
||||
}
|
||||
|
@ -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`)
|
||||
|
Reference in New Issue
Block a user