From bf0e326bcbdfdb095513c8881cbc0c4097d933a2 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 30 Sep 2010 20:53:32 +0200 Subject: [PATCH] move variables to bottom block Signed-off-by: Nico Schottelius --- bin/cdist-build-explorer | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/cdist-build-explorer b/bin/cdist-build-explorer index 1ccc9df7..48ea38c8 100755 --- a/bin/cdist-build-explorer +++ b/bin/cdist-build-explorer @@ -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}"