aboutsummaryrefslogtreecommitdiff
path: root/tools/boca-auth-runs
diff options
context:
space:
mode:
authorBruno Cesar Ribas <brunoribas@gmail.com>2018-10-23 11:58:14 +0000
committerBruno Cesar Ribas <brunoribas@gmail.com>2018-10-23 11:58:14 +0000
commitee2f72f16c37f96e99bb6b51c01fc88122533b86 (patch)
tree2ebe6a70b99277638962d32e8caa81876574e6d1 /tools/boca-auth-runs
parent8fa580d8a0ef5a9e2455c477a296cb0a537e0ba3 (diff)
parentb22599392fed08b5e86af140a4508a8892058088 (diff)
downloadboca-ee2f72f16c37f96e99bb6b51c01fc88122533b86.tar.gz
boca-ee2f72f16c37f96e99bb6b51c01fc88122533b86.zip
Merge remote-tracking branch 'origin/develc' into devel
Diffstat (limited to 'tools/boca-auth-runs')
-rwxr-xr-xtools/boca-auth-runs13
1 files changed, 10 insertions, 3 deletions
diff --git a/tools/boca-auth-runs b/tools/boca-auth-runs
index 488e65b..6b53d9f 100755
--- a/tools/boca-auth-runs
+++ b/tools/boca-auth-runs
@@ -59,8 +59,8 @@ if [ "$?" == "0" ]; then
if [ $? == 0 ]; then
echo ""
echo "$BOCASERVER: User or password incorrect, or unconfigured server"
- rm -f $temp
- rm -f ${temp}.cookie.txt
+ rm -f "$temp"
+ rm -f "${temp}.cookie.txt"
exit 3
else
a=""
@@ -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,7 @@ if [ "$?" == "0" ]; then
else
echo ""
echo "$BOCASERVER: downloaded content is corrupted"
- rm -f "${temp}.1"
+ [ -f "$temp" ] && rm -f "$temp"
rm -f "${temp}.cookie.txt"
exit 4
fi