Skip to content
Snippets Groups Projects
Commit d4391e83 authored by Ondřej Surý's avatar Ondřej Surý
Browse files

Fix some cut&paste errors when (un)installing keymgr completion

parent fa39bbdb
No related branches found
No related tags found
1 merge request!361Bash completion
......@@ -26,19 +26,15 @@ install-data-local: knot.sample.conf
$(INSTALL_DATA) knot.sample.conf $(srcdir)/example.com.zone $(DESTDIR)/$(config_dir)
[ -d $(DESTDIR)/$(sysconfdir)/bash_completion.d ] ||
$(INSTALL) -d $(DESTDIR)/$(sysconfdir)/bash_completion.d
[ -f $(DESTDIR)/$(sysconfdir)/keymgr-completion.sh ] || \
[ -f $(DESTDIR)/$(sysconfdir)/bash_completion.d/keymgr ] || \
$(INSTALL_DATA) keymgr-completion.sh $(DESTDIR)/$(sysconfdir)/bash_completion.d/keymgr
[ -d $(DESTDIR)/$(sysconfdir)/bash_completion.d ] ||
$(INSTALL) -d $(DESTDIR)/$(sysconfdir)/bash_completion.d
[ -f $(DESTDIR)/$(sysconfdir)/keymgr-completion.sh ] || \
$(INSTALL_DATA) keymgr-completion.sh $(DESTDIR)/$(sysconfdir)/bash_completion.d/
uninstall-local:
[ -f $(DESTDIR)/$(config_dir)/knot.sample.conf ] && \
rm -f $(DESTDIR)/$(config_dir)/knot.sample.conf
[ -f $(DESTDIR)/$(config_dir)/example.com.zone ] && \
rm -f $(DESTDIR)/$(config_dir)/example.com.zone
[ -f $(DESTDIR)/$(sysconfdir)/keymgr-completion.sh ] && \
[ -f $(DESTDIR)/$(sysconfdir)/bash_completion.d/keymgr ] && \
rm -f $(DESTDIR)/$(sysconfdir)/bash_completion.d/keymgr
endif # HAVE_DAEMON
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment