提交 707022c3 编写于 作者: D Daniel P. Berrangé

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: NDaniel P. Berrangé <berrange@redhat.com>
上级 eef98128
...@@ -425,6 +425,7 @@ install-bash-completion: ...@@ -425,6 +425,7 @@ install-bash-completion:
$(INSTALL_SCRIPT) $(srcdir)/bash-completion/vsh \ $(INSTALL_SCRIPT) $(srcdir)/bash-completion/vsh \
"$(DESTDIR)$(BASH_COMPLETIONS_DIR)/vsh" "$(DESTDIR)$(BASH_COMPLETIONS_DIR)/vsh"
( cd $(DESTDIR)$(BASH_COMPLETIONS_DIR) && \ ( cd $(DESTDIR)$(BASH_COMPLETIONS_DIR) && \
rm -f virsh virt-admin && \
$(LN_S) vsh virsh && \ $(LN_S) vsh virsh && \
$(LN_S) vsh virt-admin ) $(LN_S) vsh virt-admin )
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册