mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-20 01:37:59 +02:00
Use split() in uptodate()
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
e0a757ea03
commit
09980cc75e
@ -380,28 +380,13 @@ uptodate() {
|
|||||||
[ -x $1 ] || return 1
|
[ -x $1 ] || return 1
|
||||||
|
|
||||||
local dir
|
local dir
|
||||||
local ifs
|
|
||||||
|
|
||||||
if [ -n "$g_shorewalldir" ]; then
|
for dir in $g_shorewalldir $(split $CONFIG_PATH); do
|
||||||
if [ -n "$(find ${dir} -maxdepth 1 -type f -newer $1 -print -quit)" ]; then
|
if [ -n "$(find ${dir} -maxdepth 1 -type f -newer $1 -print -quit)" ]; then
|
||||||
return 1;
|
return 1;
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
|
|
||||||
ifs="$IFS"
|
|
||||||
IFS=':'
|
|
||||||
|
|
||||||
for dir in $CONFIG_PATH; do
|
|
||||||
if [ -n "$dir" ]; then
|
|
||||||
if [ -n "$(find ${dir} -maxdepth 1 -type f -newer $1 -print -quit)" ]; then
|
|
||||||
IFS="$ifs"
|
|
||||||
return 1;
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
|
|
||||||
IFS="$ifs"
|
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user