[ foo ] && bar results in exit 1 if not foo
authorhpa <hpa>
Wed, 16 Apr 2003 20:17:07 +0000 (20:17 +0000)
committerhpa <hpa>
Wed, 16 Apr 2003 20:17:07 +0000 (20:17 +0000)
Makefile

index b6237ef..95211e0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -182,7 +182,7 @@ install-lib: installer
        install -m 644 -c $(INSTALL_LIB) $(INSTALLROOT)$(LIBDIR)
        install -m 644 -c $(INSTALL_INC) $(INSTALLROOT)$(INCDIR)
        cd $(INSTALLROOT)$(LIBDIR) && ln -sf $(LIB_SO) libsyslinux.so
-       [ -z '$(INSTALLROOT)' ] && ldconfig
+       if [ -z '$(INSTALLROOT)' ]; then ldconfig; fi
 
 install-all: install install-all