Browse Source

fix: source functions

master
pvincent 3 years ago
parent
commit
560a8163d4
  1. 9
      install.sh

9
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
}

Loading…
Cancel
Save