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"