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