From 49ed4b4e538a7d0668da7e8b59b8b0b2ec1426e8 Mon Sep 17 00:00:00 2001 From: Brett Taylor Date: Fri, 19 Nov 2021 15:44:40 -0500 Subject: [PATCH] add exit code 1 if setup fails to install modules --- setup.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.js b/setup.js index d5c62461a..87ac40ee3 100644 --- a/setup.js +++ b/setup.js @@ -23,7 +23,7 @@ if (process.argv.includes("noShortcuts")) { console.log('') console.log(err) console.log('') - + process.exit(1) } } @@ -89,7 +89,7 @@ for (let dir of nodeModulesDirs) { console.log("There was an error installing some dependencies error: "); console.log(''); console.log( error ); - return; + process.exit(1) } console.log(''); console.log( stdout ); @@ -113,7 +113,7 @@ exec( command, if (tfjsWinInstallFlag == true && dir == path.join(process.cwd(), "Projects", "TensorFlow", "TS", "Bot-Modules", "Learning-Bot", "Low-Frequency-Learning")) { tfjsWinInstall(); } - return; + process.exit(1) } console.log(''); console.log( stdout );