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 -i -N -H \"Connection: Upgrade\" -H \"Upgrade: websocket\" -H \"Host: $1\" -H \"Origin: $1\" $1 -m 2)"; echo $output; test "$output" == "bazingaa"
set -e; output="$(curl -s -S -i -N -H \"Connection: Upgrade\" -H \"Upgrade: websocket\" -H \"Host: $1\" -H \"Origin: $1\" $1 -m 2)"; echo $output; test "$output" == "bazingaa"