From ef35d0093180a18afcc7c00cc01cfe4a2e1fdeef Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sat, 25 Sep 2010 12:28:40 +0200 Subject: [PATCH] find functions Signed-off-by: Nico Schottelius --- bin/cdist-explore | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/bin/cdist-explore b/bin/cdist-explore index 74a5b31d..74e7a3e7 100755 --- a/bin/cdist-explore +++ b/bin/cdist-explore @@ -21,12 +21,13 @@ . cdist-config -cd ${CDIST_LIBDIR} +find "${CDIST_LIBDIR}" -type f -name cdist_explore\* > "${CDIST_TMP}" -for func in cdist_explore_*; do - #func="cdist_explore_$report" +while read funcfull; do + sh="${funcfull##*/}" + func="${sh%.sh}" var="__$func" eval $var=\"\$\($func\)\" eval echo $var=\\\"\$$var\\\" -done +done < "${CDIST_TMP}"