Skip to content

Commit

Permalink
Fix autoinstall breaks when param used after git clone of repo (no pa…
Browse files Browse the repository at this point in the history
…ckage manager)
  • Loading branch information
jlukic committed Dec 21, 2016
1 parent 44a6bfa commit 7afba22
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tasks/install.js
Expand Up @@ -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 {
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 7afba22

Please sign in to comment.