From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter =?utf-8?q?M=C3=BCller?= To: development@lists.ipfire.org Subject: [RFC PATCH] Core Update 163: Abort update.sh in case an uninitialised variable is found Date: Fri, 03 Dec 2021 18:37:38 +0100 Message-ID: <9384fc32-2895-c585-ac06-d96ccc5668b7@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8980211818927311690==" List-Id: --===============8980211818927311690== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable This should never happen anyways, but better be safe than sorry. Signed-off-by: Peter M=C3=BCller --- config/rootfiles/core/163/update.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/rootfiles/core/163/update.sh b/config/rootfiles/core/163/= 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 --===============8980211818927311690==--