save error in output if curl errors

This commit is contained in:
Michael Hobbs committed 2014-12-21 14:51:40 -08:00
1 parent 779808f832
commit 8025657a38
9 files changed
+9 -9

No files matched your search

+1 -1
View File
@@ -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>"