diff options
author | Joey Hess <joey@kitenet.net> | 2014-09-04 15:28:08 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2014-09-04 15:28:08 -0400 |
commit | 7916f15be8169689a3b6c9d0efa6762f204109d1 (patch) | |
tree | 8cdab2b80807dd8177a910e34adda4562e7327fb | |
parent | f8f7dc35799d3255062c3897b68e89812e579929 (diff) |
better status output
-rwxr-xr-x | etckeeper | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -126,8 +126,12 @@ lsscripts() { } for script in $(lsscripts "$ETCKEEPER_CONF_DIR/$command.d"); do - if ! "$script" "$@"; then - echo "etckeeper failed running $script" >&1 + set +e + "$script" "$@" + status=$? + set -e + if [ "$status" != 0 ]; then + echo "etckeeper script $script exited $status" >&1 exit 0 fi done |