Skip to content

Commit 370c6f8

Browse files
committed
Fix $2 not defined
1 parent e37ab65 commit 370c6f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ DID_FAIL=0
66

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

0 commit comments

Comments
 (0)