forked from extern/shorewall_code
Don't use the -quit option to Busybox find
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
0e4c1cdac1
commit
bc993c384c
@ -384,9 +384,19 @@ uptodate() {
|
||||
[ -x $1 ] || return 1
|
||||
|
||||
local dir
|
||||
local busybox
|
||||
|
||||
[ -h $(mywhich find) ] && busybox=Yes
|
||||
|
||||
for dir in $g_shorewalldir $(split $CONFIG_PATH); do
|
||||
if [ -n "$(find ${dir} -maxdepth 1 -type f -newer $1 -print -quit)" ]; then
|
||||
if [ -n "$busybox" ]; then
|
||||
#
|
||||
# Busybox 'find' doesn't support -quiet.
|
||||
#
|
||||
if [ -n "$(find ${dir} -maxdepth 1 -type f -newer $1 -print)" ]; then
|
||||
return 1;
|
||||
fi
|
||||
elif [ -n "$(find ${dir} -maxdepth 1 -type f -newer $1 -print -quit)" ]; then
|
||||
return 1;
|
||||
fi
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user