Skip to content

Commit

Permalink
Fix $2 not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
williamdes committed Dec 31, 2022
1 parent e37ab65 commit 370c6f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ DID_FAIL=0

checkUrl() {
set +e
if [ "$2" = "form" ]; then
if [ "${2:-}" = "form" ]; then
curl -# --cookie-jar /tmp/test.cookie-jar -b /tmp/test.cookie-jar --fail \
-s \
-H 'Content-Type: application/x-www-form-urlencoded' \
Expand Down

0 comments on commit 370c6f8

Please sign in to comment.