aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcassio <cassiopc@gmail.com>2018-10-23 11:47:41 +0000
committercassio <cassiopc@gmail.com>2018-10-23 11:47:41 +0000
commita696577f0a685ea68c05748efe509f64ecd0bb60 (patch)
tree23a9075a35657807c5829400d694c57d522bddfa
parent7adfeeb68a0426a80e3e89d571f22b25be567c4d (diff)
downloadboca-a696577f0a685ea68c05748efe509f64ecd0bb60.tar.gz
boca-a696577f0a685ea68c05748efe509f64ecd0bb60.zip
include check if local code has run ok
-rwxr-xr-xtools/boca-auth-runs8
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