mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
tools: unlink bash completion files before symlinking
"ln" will not replace an existing symlink, so if you run 'make install' twice, the second time will get an error: ln: failed to create symbolic link 'virsh': File exists We must always remove the symlink target first. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
eef9812827
commit
707022c3e8
@ -425,6 +425,7 @@ install-bash-completion:
|
||||
$(INSTALL_SCRIPT) $(srcdir)/bash-completion/vsh \
|
||||
"$(DESTDIR)$(BASH_COMPLETIONS_DIR)/vsh"
|
||||
( cd $(DESTDIR)$(BASH_COMPLETIONS_DIR) && \
|
||||
rm -f virsh virt-admin && \
|
||||
$(LN_S) vsh virsh && \
|
||||
$(LN_S) vsh virt-admin )
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user