postinst: fix error handling if actions fails and adjust code indention
[grml-tips.git] / 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