mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 22:35:35 +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
|
local ns_name
|
||||||
|
|
||||||
# WSL needs to be detected explicitly
|
# WSL needs to be detected explicitly
|
||||||
if [ $(systemd-detect-virt --container) = "wsl" ]; then
|
if [ "$(systemd-detect-virt --container)" = "wsl" ]; then
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user