mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
rc.apparmor.functions: quote to prevent word splitting and syntax error on empty output
Thanks, shellcheck!
This commit is contained in:
parent
0f194ca1a0
commit
8eeb8c48c5
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue