From cac3130d2276d89f39984070c04fffff52f251ac Mon Sep 17 00:00:00 2001 From: nbd Date: Wed, 3 Sep 2008 13:25:26 +0000 Subject: [PATCH] fix shell return status of the find symlink command git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12514 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- tools/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/Makefile b/tools/Makefile index e15f061a4..ecde1191b 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -38,7 +38,9 @@ $(STAGING_DIR_HOST)/bin/md5sum: $(STAGING_DIR)/.prepared fi $(STAGING_DIR_HOST)/bin/find: $(STAGING_DIR)/.prepared - [ -x "$(FIND)" -a "$(FIND)" != "$@" ] && ln -sf "$(FIND)" $@ + if [ -x "$(FIND)" -a "$(FIND)" != "$@" ]; then \ + ln -sf "$(FIND)" $@; \ + fi $(curdir)/cmddeps = $(patsubst %,$(STAGING_DIR_HOST)/bin/%,find md5sum) -- 2.20.1