Skip to content

Commit a55ccaf

Browse files
committed
Make silent curl calls
1 parent 92fc924 commit a55ccaf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@ checkUrl() {
88
set +e
99
if [ "$2" = "form" ]; then
1010
curl -# --cookie-jar /tmp/test.cookie-jar -b /tmp/test.cookie-jar --fail \
11+
-s \
1112
-H 'Content-Type: application/x-www-form-urlencoded' \
1213
-L \
1314
--data-raw "${3}" \
1415
"$1"
1516
else
1617
curl -# --cookie-jar /tmp/test.cookie-jar -b /tmp/test.cookie-jar --fail \
18+
-s \
1719
${2:-} \
1820
-H 'Content-Type: application/x-www-form-urlencoded' \
1921
"$1"

0 commit comments

Comments
 (0)