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

View file

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