Skip to content

Commit 5c070d5

Browse files
committed
chore: Switch use of (( to [[
1 parent bd322c7 commit 5c070d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/build_go_slim.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ dependencies go
5656
if [[ $compress != 0 ]]; then
5757
dependencies tar zstd
5858

59-
if [[ $compress != [0-9]* ]] || ((compress > 22)) || ((compress < 1)); then
59+
if [[ $compress != [0-9]* ]] || [[ $compress -gt 22 ]] || [[ $compress -lt 1 ]]; then
6060
error "Invalid value for compress, must in in the range of [1, 22]"
6161
fi
6262
fi

0 commit comments

Comments
 (0)