fixup globalNpmTools

This commit is contained in:
2016-12-10 22:28:27 +01:00
parent ec196e1d53
commit 407d9f8237
2 changed files with 7 additions and 5 deletions

View File

@ -26,8 +26,9 @@ export let install = (versionArg) => {
// lets look for further config
configModule.getConfig()
.then(config => {
for (let npmTool of config.globalNpmTools) {
.then(configArg => {
for (let npmTool of configArg.globalNpmTools) {
plugins.beautylog.info(`Checking for global "${npmTool}"`)
let whichOutput = bash(`which ${npmTool}`)
let toolAvailable: boolean = !(/not found/.test(whichOutput))
if (toolAvailable) {