save error in output if curl errors
This commit is contained in:
1 parent
779808f832
commit
8025657a38
9 files changed
+9
-9
No files matched your search
@@ -1,2 +1,2 @@
|
||||
#!/bin/bash
|
||||
set -e; output="$(curl -s "$1")"; echo "$output"; test "$output" == "<html><h3>Static Page</h3></html>"
|
||||
set -e; output="$(curl -s -S "$1")"; echo "$output"; test "$output" == "<html><h3>Static Page</h3></html>"
|
||||
Reference in new issue
Block a user