postinst: fix error handling if actions fails and adjust code indention
authorMichael Prokop <mika@grml.org>
Wed, 11 Jan 2012 14:11:31 +0000 (15:11 +0100)
committerMichael Prokop <mika@grml.org>
Wed, 11 Jan 2012 14:11:31 +0000 (15:11 +0100)
debian/postinst

index 585579a..aa0a6a6 100755 (executable)
@@ -7,9 +7,11 @@ then
        then
                echo "Ok"
        else
-               echo "Failed"
+               echo "Failed" >&2
+               exit 1
        fi
 fi
 
- #DEBHELPER#
- exit 0
+#DEBHELPER#
+
+exit 0