libvirt_recover_xattrs: Avoid backticks for subshell

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Peter Krempa 2020-12-02 09:57:30 +01:00
parent d76d7d7d68
commit 7b6bc11f65

View File

@ -34,7 +34,7 @@ URI=("qemu:///system"
LIBVIRT_XATTR_PREFIXES=("trusted.libvirt.security"
"system.libvirt.security")
if [ `whoami` != "root" ]; then
if [ $(whoami) != "root" ]; then
die "Must be run as root"
fi