summaryrefslogtreecommitdiff
path: root/debian/dpkg.postinst
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2013-03-28 20:44:30 +0100
committerGuillem Jover <guillem@debian.org>2013-04-01 15:48:24 +0200
commit7b1b83d9df8a366a60a794faabfb073817ce2ba1 (patch)
treec447928edfeaabc7b695c83bd334bd450ea9b5f8 /debian/dpkg.postinst
parent7a2cb4e45848a401919d9b78500c67693527fe8e (diff)
downloaddpkg-7b1b83d9df8a366a60a794faabfb073817ce2ba1.tar.gz
Do not pass -e in shell script shebangs, set it in the body
This guarantees that the -e option will be set even if the script is invoked as an argument to sh. Warned-by: lintian
Diffstat (limited to 'debian/dpkg.postinst')
-rwxr-xr-xdebian/dpkg.postinst3
1 files changed, 2 insertions, 1 deletions
diff --git a/debian/dpkg.postinst b/debian/dpkg.postinst
index 874f75ca3..a74db4b1b 100755
--- a/debian/dpkg.postinst
+++ b/debian/dpkg.postinst
@@ -1,4 +1,4 @@
-#!/bin/sh -e
+#!/bin/sh
# This script can be called in the following ways:
#
# After the package was installed:
@@ -18,6 +18,7 @@
# If prerm fails during replacement due to conflict:
# <postinst> abort-remove in-favour <new-package> <version>
+set -e
# Create the database files if they don't already exist
create_database() {