Skip to content

Commit

Permalink
fix: double quote to prevent globbing and word splitting.
Browse files Browse the repository at this point in the history
  • Loading branch information
auula committed Sep 10, 2023
1 parent 4c8cbd8 commit 71ab4a6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ if [ -z "$case_num" ]; then
exit 1
fi

if [ $case_num -eq 1 ]; then
if [ ""$case_num"" -eq 1 ]; then
cd cmd && go test -c && ./cmd.test
elif [ $case_num -eq 2 ]; then
elif [ "$case_num" -eq 2 ]; then
echo "Testing conf package"
elif [ $case_num -eq 3 ]; then
elif [ "$case_num" -eq 3 ]; then
echo "Testing server package"
elif [ $case_num -eq 4 ]; then
elif [ "$case_num" -eq 4 ]; then
cd cmd && go test -c -race -coverprofile=coverage.txt -covermode=atomic -v
./cmd.test
else
Expand Down

0 comments on commit 71ab4a6

Please sign in to comment.