debianpkg: use set -e in maintscripts

Fixes maintainer-script-without-set-e Lintian warning.

Signed-off-by: David Lamparter <equinox@diac24.net>
This commit is contained in:
David Lamparter 2018-10-25 19:34:05 +02:00
parent 84df84a84e
commit 9a1c48e875
3 changed files with 8 additions and 3 deletions

View File

@ -1,4 +1,6 @@
#!/bin/bash -e
#!/bin/bash
set -e
######################
frruid=`getent passwd frr | awk -F ":" '{ print $3 }'`

View File

@ -1,4 +1,6 @@
#!/bin/bash -e
#!/bin/bash
set -e
if [ -n "$DEBIAN_SCRIPT_DEBUG" ]; then set -v -x; DEBIAN_SCRIPT_TRACE=1; fi
${DEBIAN_SCRIPT_TRACE:+ echo "#42#DEBUG# RUNNING $0 $*"}

View File

@ -1,7 +1,8 @@
#!/bin/bash -e
#!/bin/bash
if [ -n "$DEBIAN_SCRIPT_DEBUG" ]; then set -v -x; DEBIAN_SCRIPT_TRACE=1; fi
${DEBIAN_SCRIPT_TRACE:+ echo "#42#DEBUG# RUNNING $0 $*"}
set -e
# prerm remove
# old-prerm upgrade new-version