From e8a1d464088bb5da8d2e00ae926260c414ec0c0e Mon Sep 17 00:00:00 2001 From: Adrian Portabales Date: Sat, 11 Jun 2016 13:56:26 +0200 Subject: [PATCH 1/2] Edit setup.js with exit when already exist .env --- scripts/setup.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/setup.js b/scripts/setup.js index b70ebe32..51a4ea3a 100644 --- a/scripts/setup.js +++ b/scripts/setup.js @@ -219,4 +219,7 @@ if(!fs.existsSync('./\.env')) { console.log(chalk.green('Have fun using TellForm!')); } }); +}else{ + console.log(chalk.red('You already have a .env file')); + process.exit(1); } From b939715496d8acf1a31366fff07542130189ac44 Mon Sep 17 00:00:00 2001 From: Adrian Portabales Date: Sat, 11 Jun 2016 13:57:41 +0200 Subject: [PATCH 2/2] Edit setup.js with exit when already exist .env --- scripts/setup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/setup.js b/scripts/setup.js index 51a4ea3a..73af6049 100644 --- a/scripts/setup.js +++ b/scripts/setup.js @@ -219,7 +219,7 @@ if(!fs.existsSync('./\.env')) { console.log(chalk.green('Have fun using TellForm!')); } }); -}else{ +}else{ console.log(chalk.red('You already have a .env file')); process.exit(1); }