move variables to bottom block
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
37edb78ac5
commit
bf0e326bcb
1 changed files with 4 additions and 4 deletions
|
@ -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}"
|
||||
|
|
Loading…
Reference in a new issue