From: Michael Prokop Date: Wed, 11 Jan 2012 14:11:31 +0000 (+0100) Subject: postinst: fix error handling if actions fails and adjust code indention X-Git-Tag: v0.6.2~4^2~1 X-Git-Url: http://git.grml.org/?p=grml-tips.git;a=commitdiff_plain;h=75d4324d4fd26af1214754ca9056164c57d3d0fe postinst: fix error handling if actions fails and adjust code indention --- diff --git a/debian/postinst b/debian/postinst index 585579a..aa0a6a6 100755 --- a/debian/postinst +++ b/debian/postinst @@ -7,9 +7,11 @@ then then echo "Ok" else - echo "Failed" + echo "Failed" >&2 + exit 1 fi fi - #DEBHELPER# - exit 0 +#DEBHELPER# + +exit 0