From: Todd C. Miller Date: Sun, 27 Sep 2009 18:54:08 +0000 (+0000) Subject: Use if then instead of test && when installing binaries that may X-Git-Tag: SUDO_1_7_3~259 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=672d0f592e45179a37b5006efc5cd3233132cafa;p=sudo Use if then instead of test && when installing binaries that may not exist. --- diff --git a/Makefile.in b/Makefile.in index d9bcf1b17..0f128eeea 100644 --- a/Makefile.in +++ b/Makefile.in @@ -456,12 +456,12 @@ install-binaries: install-dirs $(PROGS) $(INSTALL) -O $(install_uid) -G $(install_gid) -M 4111 -s sudo $(DESTDIR)$(sudodir)/sudo rm -f $(DESTDIR)$(sudodir)/sudoedit ln $(DESTDIR)$(sudodir)/sudo $(DESTDIR)$(sudodir)/sudoedit - test -r sudoreplay && $(INSTALL) -O $(install_uid) -G $(install_gid) -M 0111 -s sudoreplay $(DESTDIR)$(sudodir)/sudoreplay + if [ -f sudoreplay ]; then $(INSTALL) -O $(install_uid) -G $(install_gid) -M 0111 -s sudoreplay $(DESTDIR)$(sudodir)/sudoreplay; fi $(INSTALL) -O $(install_uid) -G $(install_gid) -M 0111 -s visudo $(DESTDIR)$(visudodir)/visudo - test -r sesh && $(INSTALL) -O $(install_uid) -G $(install_gid) -M 0111 -s sesh $(DESTDIR)$(libexecdir)/sesh + if [ -f sesh ]; then $(INSTALL) -O $(install_uid) -G $(install_gid) -M 0111 -s sesh $(DESTDIR)$(libexecdir)/sesh; fi install-noexec: install-dirs sudo_noexec.la - test -f .libs/$(noexecfile) && $(INSTALL) -O $(install_uid) -G $(install_gid) -M 0755 .libs/$(noexecfile) $(DESTDIR)$(noexecdir) + if [ -f .libs/$(noexecfile) ]; then $(INSTALL) -O $(install_uid) -G $(install_gid) -M 0755 .libs/$(noexecfile) $(DESTDIR)$(noexecdir); fi install-sudoers: install-dirs test -f $(DESTDIR)$(sudoersdir)/sudoers || \