diff --git a/install.sh b/install.sh index 3367110..00eb1e6 100755 --- a/install.sh +++ b/install.sh @@ -44,7 +44,9 @@ if [[ $CURDIR != '/opt/miaou-bash' ]]; then fi else - source "$CURDIR/lib/functions.sh" - "$CURDIR/tools/idem_apt_install" "${REQUIRED_PKGS[@]}" + MIAOU_BASH_DIR=$CURDIR + export MIAOU_BASH_DIR + source "$MIAOU_BASH_DIR/lib/functions.sh" + "$MIAOU_BASH_DIR/tools/idem_apt_install" "${REQUIRED_PKGS[@]}" ./init.sh fi