diff options
author | Chris Lamb <lamby@debian.org> | 2008-10-22 20:08:42 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 19:03:43 +0100 |
commit | f1d230a6b5fa7147565a0e72059b3f41a6596cd6 (patch) | |
tree | 10c2655913a277fa66fb1b53574c3f1a33fe57df /functions/conffile.sh | |
parent | 4dc5ffe7f378946c7d23a979135ea6b54ef04509 (diff) | |
download | vyos-live-build-f1d230a6b5fa7147565a0e72059b3f41a6596cd6.tar.gz vyos-live-build-f1d230a6b5fa7147565a0e72059b3f41a6596cd6.zip |
Refactor utility to locate conffiles.
Diffstat (limited to 'functions/conffile.sh')
-rwxr-xr-x | functions/conffile.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/functions/conffile.sh b/functions/conffile.sh index 42a87e708..aa12fc53d 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 |