Skip to content

Commit 021702a

Browse files
committed
fix(start): don't run start commands if cancelled
1 parent 7bf4e5c commit 021702a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/ionic/start.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,12 @@ IonicTask.prototype.run = function run(ionic, argv) {
6666
})
6767
*/
6868
.then(function() {
69-
return Start.promptLogin(options);
69+
if (startingApp) {
70+
return Start.promptLogin(options);
71+
}
7072
})
7173
.then(function() {
72-
if (options.v2) {
74+
if (options.v2 && startingApp) {
7375
log.info('\nNew to Ionic? Get started here: http://ionicframework.com/docs/v2/getting-started\n');
7476
}
7577
})

0 commit comments

Comments
 (0)