configure: enforce set variable.
This commit is contained in:
parent
88650bb0d2
commit
027f9e883c
1 changed files with 2 additions and 2 deletions
4
configure
vendored
4
configure
vendored
|
|
@ -3,7 +3,7 @@
|
||||||
# Copyright (C) 2021 Alexandre Pujol <alexandre@pujol.io>
|
# Copyright (C) 2021 Alexandre Pujol <alexandre@pujol.io>
|
||||||
# SPDX-License-Identifier: GPL-2.0-only
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
set -e
|
set -eu
|
||||||
|
|
||||||
DISTRIBUTION="$(lsb_release --id --short)"
|
DISTRIBUTION="$(lsb_release --id --short)"
|
||||||
readonly DISTRIBUTION="${DISTRIBUTION,,}"
|
readonly DISTRIBUTION="${DISTRIBUTION,,}"
|
||||||
|
|
@ -97,7 +97,7 @@ flags() {
|
||||||
|
|
||||||
while read -r profile; do
|
while read -r profile; do
|
||||||
IFS=' ' read -r -a manifest <<< "$profile"
|
IFS=' ' read -r -a manifest <<< "$profile"
|
||||||
profile="${manifest[0]}" flags="${manifest[1]}"
|
profile="${manifest[0]:-}" flags="${manifest[1]:-}"
|
||||||
|
|
||||||
[[ "$profile" =~ ^\# || -z "$profile" ]] && continue
|
[[ "$profile" =~ ^\# || -z "$profile" ]] && continue
|
||||||
path="${ROOT:?}/apparmor.d/$profile"
|
path="${ROOT:?}/apparmor.d/$profile"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue