From c4608f07f7e06a58d48d74b64296be663a94c604 Mon Sep 17 00:00:00 2001 From: Alexey Neyman Date: Sun, 8 Apr 2018 20:42:07 -0700 Subject: Only attempt to chmod bash completion script ... if it has been installed. Signed-off-by: Alexey Neyman --- Makefile.am | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 87e019f5..5ee36821 100644 --- a/Makefile.am +++ b/Makefile.am @@ -66,7 +66,9 @@ install-data-hook: gzip -9 $(DESTDIR)$(man1dir)/$(ctng_progname).1 chmod +x $(DESTDIR)$(pkgdatadir)/scripts/config.guess chmod +x $(DESTDIR)$(pkgdatadir)/scripts/config.sub +if INSTALL_BASH_COMPLETION chmod -x $(DESTDIR)$(compdir)/$(ctng_progname) +endif uninstall-hook: rm -f $(DESTDIR)$(man1dir)/$(ctng_progname).1.gz -- cgit v1.2.3