aboutsummaryrefslogtreecommitdiff
path: root/bin/forever
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2022-08-13 13:18:03 -0300
committerEuAndreh <eu@euandre.org>2022-08-13 13:18:03 -0300
commit876a61a25e7013284cff89195a30bb95083d87a0 (patch)
treec7de09730c7cb87aad547b0fa02743abc30ba486 /bin/forever
parentbin/: Add examples to help strings (diff)
downloaddotfiles-876a61a25e7013284cff89195a30bb95083d87a0.tar.gz
dotfiles-876a61a25e7013284cff89195a30bb95083d87a0.tar.xz
bin/forever: Report on the status code of each run
Diffstat (limited to 'bin/forever')
-rwxr-xr-xbin/forever4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/forever b/bin/forever
index 9d2556f..d4410e5 100755
--- a/bin/forever
+++ b/bin/forever
@@ -62,5 +62,7 @@ eval "$(assert-arg "${1:-}" 'COMMAND')"
while true; do
- "$@"
+ STATUS=0
+ "$@" || STATUS=$?
+ printf 'Exitted with code %s.\n' "$STATUS" >&2
done