diff --git a/modules/security/malware-scanner.sh b/modules/security/malware-scanner.sh index 3dd9b14..90771c8 100755 --- a/modules/security/malware-scanner.sh +++ b/modules/security/malware-scanner.sh @@ -791,7 +791,7 @@ cleanup_on_exit() { fi # Save interrupted status (only if summary file directory exists) - if [ $exit_code -ne 0 ] && [ -d "$RESULTS_DIR" ]; then + if [ "$exit_code" -ne 0 ] && [ -d "$RESULTS_DIR" ]; then { echo "" echo "SCAN INTERRUPTED"