From 851ebff6972f122fde5507f1883e268bbff1f23d Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Mon, 13 Nov 2023 18:35:24 +0000 Subject: [PATCH] debug: fix exit code --- checksec | 2 +- src/functions/debug.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/checksec b/checksec index 80b8354..38a386b 100755 --- a/checksec +++ b/checksec @@ -690,7 +690,7 @@ debug_report() { fi done - if [[ ${failed} ]]; then + if ${failed}; then exit 1 fi } diff --git a/src/functions/debug.sh b/src/functions/debug.sh index f5e0c68..4a1a428 100644 --- a/src/functions/debug.sh +++ b/src/functions/debug.sh @@ -65,7 +65,7 @@ debug_report() { fi done - if [[ ${failed} ]]; then + if ${failed}; then exit 1 fi }