Skip to content

Commit de8c01f

Browse files
committed
chore: Fix PR comments
1 parent 0c6e367 commit de8c01f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/build_go_slim.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ source "$(dirname "${BASH_SOURCE[0]}")/lib.sh"
2323

2424
version=""
2525
output_path=""
26-
compress=""
26+
compress=0
2727

2828
args="$(getopt -o "" -l version:,output:,compress: -- "$@")"
2929
eval set -- "$args"
@@ -53,10 +53,10 @@ done
5353

5454
# Check dependencies
5555
dependencies go
56-
if [[ -n $compress ]]; then
56+
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 > 22)) || ((compress < 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)