Permalink
Browse files

Fix autoinstall breaks when param used after git clone of repo (no pa…

…ckage manager)
  • Loading branch information...
1 parent 44a6bfa commit 7afba22cc77c409332c070fcaca61f1b1535e877 @jlukic jlukic committed Dec 21, 2016
Showing with 5 additions and 5 deletions.
  1. +5 −5 tasks/install.js
View
@@ -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) {

0 comments on commit 7afba22

Please sign in to comment.