save error in output if curl errors

This commit is contained in:
Michael Hobbs
2014-12-14 15:31:46 -08:00
parent 779808f832
commit 8025657a38
9 changed files with 9 additions and 9 deletions

View File

@@ -1,2 +1,2 @@
#!/usr/bin/env bash
set -e; output="$(curl -s $1)"; echo $output; test "$output" == "Hello from Java!"
set -e; output="$(curl -s -S $1)"; echo $output; test "$output" == "Hello from Java!"