allow force install

master
David Kebler 2024-02-27 18:55:57 -08:00
parent e538400018
commit d497156be9
1 changed files with 2 additions and 2 deletions

View File

@ -21,10 +21,10 @@
# must! be run as sudo # must! be run as sudo
install_shell_base () { install_shell_base () {
if [[ $BASH_SHELL_BASE ]]; then if [[ $BASH_SHELL_BASE ]] && [[ -d $BASH_SHELL_BASE ]]; then
echo appears that UCI shell base is already installed at $BASH_SHELL_BASE echo appears that UCI shell base is already installed at $BASH_SHELL_BASE
echo upgrade instead using: 'module_load uci-shell-install; update_shell_base' echo upgrade instead using: 'module_load uci-shell-install; update_shell_base'
return 1 [[ $1 == "-f" ]] && { shift; echo forcing reinstall; } || return 1
fi fi
if [[ ! $BASH_SHELL_GIT_URL ]]; then if [[ ! $BASH_SHELL_GIT_URL ]]; then
echo BASH_SHELL_GIT_URL must be set before install can proceed echo BASH_SHELL_GIT_URL must be set before install can proceed