From: Gerfried Fuchs Date: Thu, 19 Apr 2012 11:03:01 +0000 (+0200) Subject: set -e on its own line X-Git-Tag: debian/0.6.0_pre2-2~2 X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=b542ed5c3515b13f8a7b5dbf8ce274d7a47ab989;p=pkg%2Fabook.git set -e on its own line --- diff --git a/debian/changelog b/debian/changelog index f6c608d..0565aa2 100644 --- a/debian/changelog +++ b/debian/changelog @@ -51,6 +51,8 @@ abook (0.6.0~pre2-2) unstable; urgency=low - Polish by Michał Kułach (closes: #658602) - Italian by Francesca Ciceri (closes: #658744) * Add Vcs-* fields to debian/control. + * Explicit call set -e in config/postrm/postinst scripts instead of on the + shebang line. -- diff --git a/debian/config b/debian/config index 57fd21d..53536b2 100644 --- a/debian/config +++ b/debian/config @@ -1,8 +1,10 @@ -#!/bin/sh -e +#!/bin/sh # config script for abook # copyright 2012 by Gerfried Fuchs # Licenced under WTFPLv2 +set -e + action=$1 version=$2 diff --git a/debian/postinst b/debian/postinst index f856309..deab0dd 100644 --- a/debian/postinst +++ b/debian/postinst @@ -1,8 +1,10 @@ -#!/bin/sh -e +#!/bin/sh # postinst for abook # copyright 2003-2012 by Gerfried Fuchs # Licenced under WTFPLv2 +set -e + # Source debconf library. if [ -e /usr/share/debconf/confmodule ]; then . /usr/share/debconf/confmodule diff --git a/debian/postrm b/debian/postrm index fc75243..27b19f3 100644 --- a/debian/postrm +++ b/debian/postrm @@ -1,8 +1,10 @@ -#!/bin/sh -e +#!/bin/sh # postrm for abook # copyright 2003-2012 by Gerfried Fuchs # Licenced under WTFPLv2 +set -e + if [ -x "`which update-menus 2>/dev/null`" ]; then update-menus fi