summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xetckeeper8
1 files changed, 6 insertions, 2 deletions
diff --git a/etckeeper b/etckeeper
index bfd1070..d3165eb 100755
--- a/etckeeper
+++ b/etckeeper
@@ -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