summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lamb <lamby@debian.org>2008-10-22 20:08:42 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:03:43 +0100
commitf1d230a6b5fa7147565a0e72059b3f41a6596cd6 (patch)
tree10c2655913a277fa66fb1b53574c3f1a33fe57df
parent4dc5ffe7f378946c7d23a979135ea6b54ef04509 (diff)
downloadlive-build-f1d230a6b5fa7147565a0e72059b3f41a6596cd6.zip
live-build-f1d230a6b5fa7147565a0e72059b3f41a6596cd6.tar.gz
Refactor utility to locate conffiles.
-rwxr-xr-xfunctions/conffile.sh9
1 files 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