Skip to content

Commit d9c70ee

Browse files
committed
-L checks if the symlink exists.
1 parent 5b10d96 commit d9c70ee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

installer/kvm-qemu.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -918,13 +918,13 @@ function install_qemu() {
918918
make -j"$(nproc)" install
919919
fi
920920
# hack for libvirt/virt-manager
921-
if [ ! -f /usr/bin/qemu-system-x86_64-spice ]; then
921+
if [ ! -L /usr/bin/qemu-system-x86_64-spice ]; then
922922
ln -s /usr/bin/qemu-system-x86_64 /usr/bin/qemu-system-x86_64-spice
923923
fi
924-
if [ ! -f /usr/bin/kvm-spice ]; then
924+
if [ ! -L /usr/bin/kvm-spice ]; then
925925
ln -s /usr/bin/qemu-system-x86_64 /usr/bin/kvm-spice
926926
fi
927-
if [ ! -f /usr/bin/kvm ]; then
927+
if [ ! -L /usr/bin/kvm ]; then
928928
ln -s /usr/bin/qemu-system-x86_64 /usr/bin/kvm
929929
fi
930930
if [ $? -eq 0 ]; then

0 commit comments

Comments
 (0)