Skip to content

Commit 07069e7

Browse files
committed
prefer (( )) over [[ ]] for arithmetic
1 parent c980e59 commit 07069e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/devops/scripts/ci/utils.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function get_max_length() {
2929

3030
for item in "${array[@]}"; do
3131
length=${#item}
32-
if [[ $length -gt $max ]]; then
32+
if (( length > max )); then
3333
max=$length
3434
fi
3535
done

0 commit comments

Comments
 (0)