From 027f9e883c6fd2b4a80a37963c2623d47684d971 Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Tue, 22 Feb 2022 22:08:58 +0000 Subject: [PATCH] configure: enforce set variable. --- configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index d983516a..e7fb46ce 100755 --- a/configure +++ b/configure @@ -3,7 +3,7 @@ # Copyright (C) 2021 Alexandre Pujol # SPDX-License-Identifier: GPL-2.0-only -set -e +set -eu DISTRIBUTION="$(lsb_release --id --short)" readonly DISTRIBUTION="${DISTRIBUTION,,}" @@ -97,7 +97,7 @@ flags() { while read -r profile; do IFS=' ' read -r -a manifest <<< "$profile" - profile="${manifest[0]}" flags="${manifest[1]}" + profile="${manifest[0]:-}" flags="${manifest[1]:-}" [[ "$profile" =~ ^\# || -z "$profile" ]] && continue path="${ROOT:?}/apparmor.d/$profile"