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 }