Skip to content

Commit

Permalink
prefer (( )) over [[ ]] for arithmetic
Browse files Browse the repository at this point in the history
  • Loading branch information
jaskfla committed Apr 7, 2024
1 parent 24dbbb7 commit cdd14e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/devops/scripts/ci/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function get_max_length() {

for item in "${array[@]}"; do
length=${#item}
if [[ $length -gt $max ]]; then
if (( length > max )); then
max=$length
fi
done
Expand Down

0 comments on commit cdd14e6

Please sign in to comment.