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 <vibe@mistral.ai>
This commit is contained in:
Theo Tappe
2026-06-24 12:50:27 +02:00
parent 3e5b94ecad
commit 792a85099f
+3 -2
View File
@@ -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"