mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 14:25:52 +00:00
rc.apparmor.functions: quote to prevent word splitting and syntax error on empty output
Thanks, shellcheck!
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user