summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 3441b630..5f282b83 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -20,4 +20,5 @@ install-data-hook:
tmpfile=`mktemp $${TMPDIR:-/tmp}/bash_completion.XXXXXX` && \
sed -e 's|=/etc/bash_completion\.d|=$(sysconfdir)/bash_completion.d|' \
$(DESTDIR)$(pkgdatadir)/bash_completion > $$tmpfile && \
- mv $$tmpfile $(DESTDIR)$(pkgdatadir)/bash_completion
+ cat $$tmpfile > $(DESTDIR)$(pkgdatadir)/bash_completion && \
+ rm $$tmpfile