diff --git a/driveAtlas.sh b/driveAtlas.sh index 9e139c2..1d53f33 100644 --- a/driveAtlas.sh +++ b/driveAtlas.sh @@ -486,7 +486,8 @@ for bay in $(printf '%s\n' "${!DRIVE_MAP[@]}" | grep -E '^[0-9]+$' | sort -n); d [[ -z "$reweight" ]] && reweight="0" # Determine in/out based on reweight (1.0 = in, 0 = out) - if (( $(echo "$reweight > 0" | bc -l 2>/dev/null || echo 0) )); then + # Use awk for floating point comparison (more portable than bc) + if awk "BEGIN {exit !($reweight > 0)}"; then in_status="in" else in_status="out"