diff --git a/install.sh b/install.sh index 20b1bf1..0bc237f 100755 --- a/install.sh +++ b/install.sh @@ -15,10 +15,6 @@ function install_host() { [ $(id -u) -ne 0 ] && echo 'root privilege required' && exit 1 - # shellcheck disable=SC1091 - source "$CURDIR/lib/functions.sh" - idem_apt_install "${REQUIRED_PKGS[@]}" - if [[ ! $CURDIR == '/opt/debian-bash' ]]; then # download and filfull /opt/debian-bash, then run it from folder @@ -61,6 +57,11 @@ function install_host() { fi done source /etc/bash.bashrc + + # shellcheck disable=SC1091 + source "$CURDIR/lib/functions.sh" + idem_apt_install "${REQUIRED_PKGS[@]}" + fi }