forked from extern/shorewall_code
Merge branch '5.1.11'
# Conflicts: # Shorewall/lib.cli-std
This commit is contained in:
commit
37ecbff23a
@ -385,18 +385,23 @@ uptodate() {
|
|||||||
|
|
||||||
local dir
|
local dir
|
||||||
local busybox
|
local busybox
|
||||||
|
local find
|
||||||
|
|
||||||
[ -h $(mywhich find) ] && busybox=Yes
|
find=$(mywhich find)
|
||||||
|
|
||||||
|
[ -n "$find" ] || return 1
|
||||||
|
|
||||||
|
[ -h "${find}" ] && busybox=Yes
|
||||||
|
|
||||||
for dir in $g_shorewalldir $(split $CONFIG_PATH); do
|
for dir in $g_shorewalldir $(split $CONFIG_PATH); do
|
||||||
if [ -n "$busybox" ]; then
|
if [ -n "${busybox}" ]; then
|
||||||
#
|
#
|
||||||
# Busybox 'find' doesn't support -quiet.
|
# Busybox 'find' doesn't support -quiet.
|
||||||
#
|
#
|
||||||
if [ -n "$(find ${dir} -maxdepth 1 -type f -newer $1 -print)" ]; then
|
if [ -n "$(${find} ${dir} -maxdepth 1 -type f -newer $1 -print)" ]; then
|
||||||
return 1;
|
return 1;
|
||||||
fi
|
fi
|
||||||
elif [ -n "$(find ${dir} -maxdepth 1 -type f -newer $1 -print -quit)" ]; then
|
elif [ -n "$(${find} ${dir} -maxdepth 1 -type f -newer $1 -print -quit)" ]; then
|
||||||
return 1;
|
return 1;
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user