Commit 87df0a2b authored by Dom Sekotill's avatar Dom Sekotill
Browse files

run-hooks exits with the same exit code as a failed hook

parent 75ec24f7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -26,5 +26,5 @@ done
# Run-parts, feeding stdin
for script in $0.d/*; do
	[ -x "$script" ] || continue
	printf "%s\n" "${stdin[@]}" | "$script" "$@" || exit 1
	printf "%s\n" "${stdin[@]}" | "$script" "$@" || exit $?
done