diff options
author | Guillem Jover <guillem@debian.org> | 2013-03-28 20:44:30 +0100 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2013-04-01 15:48:24 +0200 |
commit | 7b1b83d9df8a366a60a794faabfb073817ce2ba1 (patch) | |
tree | c447928edfeaabc7b695c83bd334bd450ea9b5f8 /debian/dpkg.postinst | |
parent | 7a2cb4e45848a401919d9b78500c67693527fe8e (diff) | |
download | dpkg-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-x | debian/dpkg.postinst | 3 |
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() { |