From 75d4324d4fd26af1214754ca9056164c57d3d0fe Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Wed, 11 Jan 2012 15:11:31 +0100 Subject: [PATCH] postinst: fix error handling if actions fails and adjust code indention --- debian/postinst | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 -- 2.1.4