From a696577f0a685ea68c05748efe509f64ecd0bb60 Mon Sep 17 00:00:00 2001 From: cassio Date: Tue, 23 Oct 2018 13:47:41 +0200 Subject: include check if local code has run ok --- tools/boca-auth-runs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'tools/boca-auth-runs') 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 -- cgit v1.2.3