Show a summary line including the result code
authorAlexander Barton <alex@barton.de>
Sun, 22 Oct 2017 16:58:06 +0000 (18:58 +0200)
committerAlexander Barton <alex@barton.de>
Sun, 22 Oct 2017 16:58:06 +0000 (18:58 +0200)
scripts/trigger-rcmd

index ec70d95..5d96d7f 100755 (executable)
@@ -171,6 +171,7 @@ while [ $# -gt 0 ]; do
                [ -z "$NO_WAKE" ] || [ $r -ne 9 ] && result=1
        fi
        shift
-       [ $# -gt 0 ] && echo
 done
+
+echo "$NAME: All done, exit code $result - $(date "+%Y-%m-%d %H:%M:%S")"
 exit $result