This increment fails because of
set -euo pipefail. Using ((++i)) evaluates after the increment and works
This commit is contained in:
parent
f8cfad314e
commit
4141f049fa
1 changed files with 1 additions and 1 deletions
|
|
@ -231,6 +231,6 @@ while true; do
|
|||
i=0
|
||||
fi
|
||||
printf "%19s %3d°C %3d°C %3s°C %5s°C %40s %51s %s\n" "$(date +"%d-%m-%Y %T")" $INLET_TEMPERATURE $CPU1_TEMPERATURE "$CPU2_TEMPERATURE" "$EXHAUST_TEMPERATURE" "$CURRENT_FAN_CONTROL_PROFILE" "$THIRD_PARTY_PCIE_CARD_DELL_DEFAULT_COOLING_RESPONSE_STATUS" "$COMMENT"
|
||||
((i++))
|
||||
((++i))
|
||||
wait $SLEEP_PROCESS_PID
|
||||
done
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue