real latest install
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
# CONSTANTS
|
||||
|
||||
INSTALL_URL='https://git.artcode.re/miaou/miaou-bash/raw/branch/main/install.sh'
|
||||
|
||||
# FUNCTIONS
|
||||
|
||||
function hosted_upgrade {
|
||||
@@ -49,7 +51,11 @@ function perform_upgrade {
|
||||
sudo_root
|
||||
local backup="$MIAOU_BASH_DIR".before_upgrade
|
||||
sudo mv "$MIAOU_BASH_DIR" "$backup"
|
||||
if "$backup"/install.sh upgraded; then
|
||||
curl -s --output /tmp/miaou-bash-install.sh "$INSTALL_URL"
|
||||
|
||||
# shellcheck disable=SC1091
|
||||
if source /tmp/miaou-bash-install.sh upgrade; then
|
||||
# if "$backup"/install.sh upgraded; then
|
||||
sudo mv "$backup"/hooks.d/* "$MIAOU_BASH_DIR/hooks.d/"
|
||||
sudo rm -rf "$backup"
|
||||
cat <<EOF
|
||||
|
||||
Reference in New Issue
Block a user