From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: development@lists.ipfire.org Subject: Re: [RFC PATCH] Core Update 163: Abort update.sh in case an uninitialised variable is found Date: Sat, 04 Dec 2021 12:46:16 +0000 Message-ID: <4ED96E97-2724-40CC-A90A-49401A04DA4E@ipfire.org> In-Reply-To: <9384fc32-2895-c585-ac06-d96ccc5668b7@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2288817557755752259==" List-Id: --===============2288817557755752259== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Why? > On 3 Dec 2021, at 17:37, Peter M=C3=BCller wro= te: >=20 > This should never happen anyways, but better be safe than sorry. >=20 > Signed-off-by: Peter M=C3=BCller > --- > config/rootfiles/core/163/update.sh | 3 +++ > 1 file changed, 3 insertions(+) >=20 > diff --git a/config/rootfiles/core/163/update.sh b/config/rootfiles/core/16= 3/update.sh > index e51dbf0b3..c1f23f25e 100644 > --- a/config/rootfiles/core/163/update.sh > +++ b/config/rootfiles/core/163/update.sh > @@ -24,6 +24,9 @@ > . /opt/pakfire/lib/functions.sh > /usr/local/bin/backupctrl exclude >/dev/null 2>&1 >=20 > +# Abort in case of uninitialised variables > +set -u > + > core=3D163 >=20 > exit_with_error() { > --=20 > 2.26.2 --===============2288817557755752259==--