From d55c5b509f5fcae17892809e59272f67374573dc Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sun, 19 Sep 2010 14:30:36 +0200 Subject: [PATCH] autoload libraries Signed-off-by: Nico Schottelius --- bin/cdist-config | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bin/cdist-config b/bin/cdist-config index fd92ca9d..03675a6f 100755 --- a/bin/cdist-config +++ b/bin/cdist-config @@ -25,6 +25,14 @@ : ${CDIST_COREDIR:=$CDIST_CONFIG/core} : ${CDIST_LIBDIR:=$CDIST_CONFIG/lib} +set -e + +# load libraries so every program has them available +__cdist_cur="$(pwd -P)" +cd "${CDIST_LIBDIR}" +for __cdist_lib in *; do + . "./${__cdist_lib}" +done #echo $CDIST_CONFIG