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}"