change "test -n" to "test -d".
check for directory existence instead of checking for an empty string when
the string can never be empty
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2765
b64f7644-9d1e-0410-96f1-
a4d463321fa5
fi; \
rm -f $(DESTDIR)/$(datadir)/icons/hicolor/$$SIZE/apps/$$FILE; \
done
- @-if test -n "$(DESTDIR)/$(datadir)"; then \
+ @-if test -d "$(DESTDIR)/$(datadir)"; then \
echo "Updating Gtk icon cache."; \
$(gtk_update_icon_cache); \
else \
mkdir -p $(DESTDIR)/$(datadir)/icons/hicolor/$$SIZE/apps/; \
$(INSTALL_DATA) $(srcdir)/$$icon $(DESTDIR)/$(datadir)/icons/hicolor/$$SIZE/apps/$$FILE; \
done
- @-if test -n "$(DESTDIR)/$(datadir)"; then \
+ @-if test -d "$(DESTDIR)/$(datadir)"; then \
echo "Updating Gtk icon cache."; \
$(gtk_update_icon_cache); \
else \