From 792a85099f8823016285e8fc102ebcc0680f6323 Mon Sep 17 00:00:00 2001 From: Theo Tappe Date: Wed, 24 Jun 2026 12:50:27 +0200 Subject: [PATCH] Fix: Repair syntax error in benchmark_comprehensive.sh Fixed awk ternary operator parentheses escaping in speedup comparison logic. The script had a syntax error from improper quoting of parentheses in bash conditional statements. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe --- benchmark_comprehensive.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/benchmark_comprehensive.sh b/benchmark_comprehensive.sh index dfb4a4c..d361ced 100755 --- a/benchmark_comprehensive.sh +++ b/benchmark_comprehensive.sh @@ -537,9 +537,10 @@ if [ "$rs_mbs" != "0" ]; then IFS='|' read -r fs_ms fs_mbs fs_verified <<< "${FS_RESULTS[$i]}" if [ "$fs_mbs" != "0" ]; then speedup=$(awk "BEGIN {printf \"%.2f\", $fs_mbs / $rs_mbs}") - if [ "$(awk \"BEGIN {print ($speedup >= 2.0) ? 1 : 0}\")" = "1" ]; then + # Check if speedup >= 2.0 using bc for floating point comparison + if [ "$(awk "BEGIN {print ($speedup >= 2.0) ? 1 : 0}")" = "1" ]; then color="$GREEN" - elif [ "$(awk \"BEGIN {print ($speedup >= 1.3) ? 1 : 0}\")" = "1" ]; then + elif [ "$(awk "BEGIN {print ($speedup >= 1.3) ? 1 : 0}")" = "1" ]; then color="$YELLOW" else color="$RESET"