[Pkg-jed-commit] r1202 - jed-extra/trunk/debian

Jörg Sommer jo-guest at alioth.debian.org
Mon Dec 14 11:06:18 UTC 2009


Author: jo-guest
Date: 2009-12-14 11:06:16 +0000 (Mon, 14 Dec 2009)
New Revision: 1202

Modified:
   jed-extra/trunk/debian/postinst
   jed-extra/trunk/debian/prerm
Log:
Use set -e instead of -e in the shebang in package scripts

The shebang (the first line of the script) is not evaluated by all
shells. Once the script is run by calling sh directly (“sh $script”), the
option may be lost. Therefore, the option should be turned on by the set
function, because it's an command of the script and therefore surely
executed.

Refer to the lintian warning maintainer-script-without-set-e or Debian
Policy Manual section 10.4.


Modified: jed-extra/trunk/debian/postinst
===================================================================
--- jed-extra/trunk/debian/postinst	2009-12-09 20:58:50 UTC (rev 1201)
+++ jed-extra/trunk/debian/postinst	2009-12-14 11:06:16 UTC (rev 1202)
@@ -1,5 +1,7 @@
-#!/bin/sh -e
+#!/bin/sh
 
+set -e
+
 . /usr/share/debconf/confmodule
 
 case "$1" in

Modified: jed-extra/trunk/debian/prerm
===================================================================
--- jed-extra/trunk/debian/prerm	2009-12-09 20:58:50 UTC (rev 1201)
+++ jed-extra/trunk/debian/prerm	2009-12-14 11:06:16 UTC (rev 1202)
@@ -1,5 +1,7 @@
-#!/bin/sh -e
+#!/bin/sh
 
+set -e
+
 /usr/share/jed/compile/jed-extra remove
 
 #DEBHELPER#




More information about the Pkg-jed-commit mailing list