From 0cd2e7287cec0675bcfbde3703e77fb41b115700 Mon Sep 17 00:00:00 2001 From: Norbert de Langen Date: Fri, 19 Jan 2018 16:42:36 +0100 Subject: [PATCH] Use exitCode over process.exit() --- bin/jsinspect | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/jsinspect b/bin/jsinspect index dc15bef..e31b165 100755 --- a/bin/jsinspect +++ b/bin/jsinspect @@ -108,8 +108,8 @@ inspector.on('match', () => matches++); try { inspector.run(); - process.exit(matches ? 5 : 0); + process.exitCode = matches ? 5 : 0; } catch(err) { console.log(err); - process.exit(1); + process.exitCode = 1; }