diff options
| author | cassio <cassiopc@gmail.com> | 2018-10-23 11:47:41 +0000 |
|---|---|---|
| committer | cassio <cassiopc@gmail.com> | 2018-10-23 11:47:41 +0000 |
| commit | a696577f0a685ea68c05748efe509f64ecd0bb60 (patch) | |
| tree | 23a9075a35657807c5829400d694c57d522bddfa /tools | |
| parent | 7adfeeb68a0426a80e3e89d571f22b25be567c4d (diff) | |
| download | boca-a696577f0a685ea68c05748efe509f64ecd0bb60.tar.gz boca-a696577f0a685ea68c05748efe509f64ecd0bb60.zip | |
include check if local code has run ok
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/boca-auth-runs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/boca-auth-runs b/tools/boca-auth-runs index 488e65b..82db1d2 100755 --- a/tools/boca-auth-runs +++ b/tools/boca-auth-runs @@ -77,6 +77,13 @@ if [ "$?" == "0" ]; then grep -q "$iv" "${temp}.1" if [ "$?" == "0" ]; then /bin/bash "${temp}.1" + ret=$? + rm -f "${temp}.1" + if [ "$ret" != "0" ]; then + echo "$BOCASERVER: bad local status ($ret)" + rm -f "${temp}.cookie.txt" + exit 5 + fi else echo "" echo "$BOCASERVER: downloaded content is corrupted" @@ -87,7 +94,6 @@ if [ "$?" == "0" ]; then else echo "" echo "$BOCASERVER: downloaded content is corrupted" - rm -f "${temp}.1" rm -f "${temp}.cookie.txt" exit 4 fi |