diff options
-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 |