Fix typo: /devnull file created in filesystem

This commit is contained in:
glitsj16 2022-12-21 00:52:51 +00:00 committed by Stéphane Lesimple
parent b68ebe67f2
commit bea5cfc3b8

View File

@ -3386,7 +3386,7 @@ check_has_vmm()
else else
# ignore SC2009 as `ps ax` is actually used as a fallback if `pgrep` isn't installed # ignore SC2009 as `ps ax` is actually used as a fallback if `pgrep` isn't installed
# shellcheck disable=SC2009 # shellcheck disable=SC2009
if command -v ps >/devnull && ps ax | grep -vw grep | grep -q -e '\<qemu' -e '/qemu' -e '<\kvm' -e '/kvm' -e '/xenstored' -e '/xenconsoled'; then if command -v ps >/dev/null && ps ax | grep -vw grep | grep -q -e '\<qemu' -e '/qemu' -e '<\kvm' -e '/kvm' -e '/xenstored' -e '/xenconsoled'; then
has_vmm=1 has_vmm=1
fi fi
fi fi