diff options
author | EuAndreh <eu@euandre.org> | 2022-08-13 13:18:03 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2022-08-13 13:18:03 -0300 |
commit | 876a61a25e7013284cff89195a30bb95083d87a0 (patch) | |
tree | c7de09730c7cb87aad547b0fa02743abc30ba486 /bin | |
parent | bin/: Add examples to help strings (diff) | |
download | dotfiles-876a61a25e7013284cff89195a30bb95083d87a0.tar.gz dotfiles-876a61a25e7013284cff89195a30bb95083d87a0.tar.xz |
bin/forever: Report on the status code of each run
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/forever | 4 |
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 |