From b542ed5c3515b13f8a7b5dbf8ce274d7a47ab989 Mon Sep 17 00:00:00 2001 From: Gerfried Fuchs Date: Thu, 19 Apr 2012 13:03:01 +0200 Subject: [PATCH] set -e on its own line --- debian/changelog | 2 ++ debian/config | 4 +++- debian/postinst | 4 +++- debian/postrm | 4 +++- 4 files changed, 11 insertions(+), 3 deletions(-) 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 -- 2.39.2