Skip to content

Commit b45c125

Browse files
committed
Use arithmetic relational operators for the verbosity level comparisons
1 parent 6c94475 commit b45c125

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arduino-ci-script.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ function set_script_verbosity()
5050
ARDUINO_CI_SCRIPT_VERBOSITY_LEVEL=1
5151
fi
5252

53-
if [[ "$ARDUINO_CI_SCRIPT_VERBOSITY_LEVEL" == 1 ]]; then
53+
if [[ "$ARDUINO_CI_SCRIPT_VERBOSITY_LEVEL" -eq 1 ]]; then
5454
ARDUINO_CI_SCRIPT_VERBOSITY_OPTION="--verbose"
5555
ARDUINO_CI_SCRIPT_QUIET_OPTION=""
5656
# Show stderr only
5757
ARDUINO_CI_SCRIPT_VERBOSITY_REDIRECT="1>/dev/null"
58-
elif [[ "$ARDUINO_CI_SCRIPT_VERBOSITY_LEVEL" == 2 ]]; then
58+
elif [[ "$ARDUINO_CI_SCRIPT_VERBOSITY_LEVEL" -eq 2 ]]; then
5959
ARDUINO_CI_SCRIPT_VERBOSITY_OPTION="--verbose"
6060
ARDUINO_CI_SCRIPT_QUIET_OPTION=""
6161
# Show stdout and stderr

0 commit comments

Comments
 (0)