From ecd586a8f95f1d7a1e200d1862c273b8992c1217 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Thu, 25 Oct 2018 19:34:05 +0200 Subject: [PATCH] debianpkg: use set -e in maintscripts Fixes maintainer-script-without-set-e Lintian warning. Signed-off-by: David Lamparter --- debianpkg/frr.postinst | 4 +++- debianpkg/frr.postrm | 4 +++- debianpkg/frr.prerm | 3 ++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/debianpkg/frr.postinst b/debianpkg/frr.postinst index 32af741c98..f44e79a552 100644 --- a/debianpkg/frr.postinst +++ b/debianpkg/frr.postinst @@ -1,4 +1,6 @@ -#!/bin/bash -e +#!/bin/bash + +set -e ###################### PASSWDFILE=/etc/passwd diff --git a/debianpkg/frr.postrm b/debianpkg/frr.postrm index 26576fd136..aef06adcb9 100644 --- a/debianpkg/frr.postrm +++ b/debianpkg/frr.postrm @@ -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 $*"} diff --git a/debianpkg/frr.prerm b/debianpkg/frr.prerm index 4b71202810..090cd5752a 100644 --- a/debianpkg/frr.prerm +++ b/debianpkg/frr.prerm @@ -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 -- 2.39.5