From c09b156930bee1aed7c43b92ae755ecb4428ac83 Mon Sep 17 00:00:00 2001 From: Kristoffer K Date: Thu, 9 Jan 2020 09:09:28 +0100 Subject: [PATCH 1/2] fix: provide an exitCode if install fails --- src/installer/bin.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/installer/bin.ts b/src/installer/bin.ts index ce06c00c5..662911733 100644 --- a/src/installer/bin.ts +++ b/src/installer/bin.ts @@ -103,6 +103,7 @@ function run(): void { console.log(chalk.red(err.message.trim())) debug(err.stack) console.log(chalk.red(`husky > Failed to ${action}`)) + process.exit(1) } } From 1107a5d02461bd1ed41bf38ba0a41ad0c1498ada Mon Sep 17 00:00:00 2001 From: Kristoffer K Date: Thu, 9 Jan 2020 14:36:18 +0100 Subject: [PATCH 2/2] Update src/installer/bin.ts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Maƫl Nison --- src/installer/bin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/installer/bin.ts b/src/installer/bin.ts index 662911733..c76540c1b 100644 --- a/src/installer/bin.ts +++ b/src/installer/bin.ts @@ -103,7 +103,7 @@ function run(): void { console.log(chalk.red(err.message.trim())) debug(err.stack) console.log(chalk.red(`husky > Failed to ${action}`)) - process.exit(1) + process.exitCode = 1 } }