forked from ungleich-public/cdist
autoload libraries
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
f65c78deb6
commit
d55c5b509f
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue