From 09980cc75e19a8fec20d516cd12b13895cce95e9 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Sun, 31 Dec 2017 15:33:31 -0800 Subject: [PATCH] Use split() in uptodate() Signed-off-by: Tom Eastep --- Shorewall/lib.cli-std | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/Shorewall/lib.cli-std b/Shorewall/lib.cli-std index 21bd19c0d..7d30bf874 100644 --- a/Shorewall/lib.cli-std +++ b/Shorewall/lib.cli-std @@ -380,28 +380,13 @@ uptodate() { [ -x $1 ] || return 1 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 return 1; 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 - IFS="$ifs" - return 0 }