From 560a8163d41c2a3e33aa40d45414b4700234d6fc Mon Sep 17 00:00:00 2001 From: pvincent Date: Fri, 20 Aug 2021 22:57:36 +0400 Subject: [PATCH] fix: source functions --- install.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 }