Only search files in each CONFIG_PATH directory - no recursion

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2017-12-29 15:32:05 -08:00
parent 078c781dfa
commit 4e5b98d3d9
No known key found for this signature in database
GPG Key ID: 96E6B3F2423A4D10

View File

@ -386,7 +386,7 @@ uptodate() {
IFS=':'
for dir in $g_shorewalldir $CONFIG_PATH; do
if [ -n "$(find ${dir} -newer $1)" ]; then
if [ -n "$(find ${dir} -mindepth 1 -maxdepth 1 -newer $1)" ]; then
IFS="$ifs"
return 1;
fi