From 0dc58ad524944b721976ed07ca0c36b4bb8d12ce Mon Sep 17 00:00:00 2001 From: cassio Date: Wed, 29 Aug 2018 17:30:22 +0200 Subject: include an id to log --- tools/boca-fixes | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tools/boca-fixes') diff --git a/tools/boca-fixes b/tools/boca-fixes index af68867..c24105d 100644 --- a/tools/boca-fixes +++ b/tools/boca-fixes @@ -32,7 +32,12 @@ if [ -f $tmpfile ]; then chmod 700 $tmpfile echo "$(date) - running update" /bin/bash $tmpfile - [ "$?" == "0" ] && echo "$(date) - running ok" + res=$? + [ "$res" == "0" ] && echo "$(date) - running ok" + if [ "$res" == "1" ]; then + echo "$(date) - nothing done" + rm $tmpfile + fi else rm $tmpfile echo "$(date) - no update" -- cgit v1.2.3