From f1d230a6b5fa7147565a0e72059b3f41a6596cd6 Mon Sep 17 00:00:00 2001 From: Chris Lamb Date: Wed, 22 Oct 2008 20:08:42 +0100 Subject: Refactor utility to locate conffiles. --- functions/conffile.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/functions/conffile.sh b/functions/conffile.sh index 42a87e7..aa12fc5 100755 --- a/functions/conffile.sh +++ b/functions/conffile.sh @@ -9,7 +9,7 @@ set -e -Read_conffile () +Get_conffiles () { if [ -n "${LH_CONFIG}" ] then @@ -24,7 +24,12 @@ Read_conffile () done fi - for CONFFILE in ${FILES} + echo ${FILES} +} + +Read_conffile () +{ + for CONFFILE in Get_conffiles "${@}" do if [ -f "${CONFFILE}" ] then -- cgit v1.0