move variables to bottom block

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2010-09-30 20:53:32 +02:00
parent 37edb78ac5
commit bf0e326bcb
1 changed files with 4 additions and 4 deletions

View File

@ -25,15 +25,15 @@ find "${CDIST_LIBDIR}" -type f -name cdist_explore\*.sh > "${CDIST_TMP}"
# first load all functions
while read funcfull; do
sh="${funcfull##*/}"
func="${sh%.sh}"
var="__$func"
cat "${funcfull}"
done < "${CDIST_TMP}"
# then execute functions
while read funcfull; do
sh="${funcfull##*/}"
func="${sh%.sh}"
var="__$func"
echo "$var=\"\$($func)\""
echo "echo $var=\\\"\$$var\\\""
done < "${CDIST_TMP}"