From 60f1375c25d0e1125ded3e8026059a2f2d978f46 Mon Sep 17 00:00:00 2001 From: Jia Hao Date: Sat, 30 Jan 2016 01:57:56 +0800 Subject: [PATCH] Do not print done statement if app already exist and `--overwrite is not passed` --- src/cli.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/cli.js b/src/cli.js index 7796929..d67f9c0 100755 --- a/src/cli.js +++ b/src/cli.js @@ -40,6 +40,11 @@ if (require.main === module) { console.error(error); return; } + + if (!appPath) { + // app exists and --overwrite is not passed + return; + } console.log(`App built to ${appPath}`); }); }