Browse Source

Fix autoinstall breaks when param used after git clone of repo (no package manager)

pull/4931/head
Jack Lukic 8 years ago
parent
commit
7afba22cc7
1 changed files with 5 additions and 5 deletions
  1. 10
      tasks/install.js

10
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) {

Loading…
Cancel
Save