aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcassio <cassiopc@gmail.com>2018-10-23 11:50:13 +0000
committercassio <cassiopc@gmail.com>2018-10-23 11:50:13 +0000
commitb22599392fed08b5e86af140a4508a8892058088 (patch)
treee95cd078978430f5bc1f4540143b048d14ae11b7
parenta696577f0a685ea68c05748efe509f64ecd0bb60 (diff)
downloadboca-b22599392fed08b5e86af140a4508a8892058088.tar.gz
boca-b22599392fed08b5e86af140a4508a8892058088.zip
remove unnecessary file
-rwxr-xr-xtools/boca-auth-runs5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/boca-auth-runs b/tools/boca-auth-runs
index 82db1d2..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=""
@@ -94,6 +94,7 @@ if [ "$?" == "0" ]; then
else
echo ""
echo "$BOCASERVER: downloaded content is corrupted"
+ [ -f "$temp" ] && rm -f "$temp"
rm -f "${temp}.cookie.txt"
exit 4
fi