From 7afba22cc77c409332c070fcaca61f1b1535e877 Mon Sep 17 00:00:00 2001 From: Jack Lukic Date: Wed, 21 Dec 2016 15:25:42 -0500 Subject: [PATCH] Fix autoinstall breaks when param used after git clone of repo (no package manager) --- tasks/install.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tasks/install.js b/tasks/install.js index 31fb2be25..a645f84f9 100644 --- a/tasks/install.js +++ b/tasks/install.js @@ -194,10 +194,10 @@ gulp.task('run setup', function() { // If auto-install is switched on, we skip the configuration section and simply reuse the configuration from semantic.json if(install.shouldAutoInstall()) { answers = { - overwrite : 'yes', - install : 'auto', - useRoot : true, - semanticRoot : currentConfig.base + overwrite : 'yes', + install : 'auto', + useRoot : true, + semanticRoot : currentConfig.base }; } else { @@ -250,7 +250,7 @@ gulp.task('create install files', function(callback) { ---------------*/ // Check if PM install - if(answers.useRoot || answers.customRoot) { + if(manager && (answers.useRoot || answers.customRoot)) { // Set root to custom root path if set if(answers.customRoot) {