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 diff --git a/Makefile.am b/Makefile.am index 87e019f..5ee3682 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 v0.10.2-6-g49f6