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
@@ -5,7 +5,7 @@ test_url () {
|
||||
path="$1"
|
||||
expected_output="$2"
|
||||
url="$base_url$path"
|
||||
output="$(curl -s "$url")"
|
||||
output="$(curl -s -S "$url")"
|
||||
echo "$output"
|
||||
test "$output" == "$expected_output"
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user