rc.apparmor.functions: quote to prevent word splitting and syntax error on empty output

Thanks, shellcheck!
This commit is contained in:
intrigeri 2022-02-13 07:15:11 +00:00
parent 0f194ca1a0
commit 8eeb8c48c5

View file

@ -91,7 +91,7 @@ is_container_with_internal_policy() {
local ns_name
# WSL needs to be detected explicitly
if [ $(systemd-detect-virt --container) = "wsl" ]; then
if [ "$(systemd-detect-virt --container)" = "wsl" ]; then
return 0
fi