real latest install
This commit is contained in:
@@ -53,10 +53,12 @@ function perform_upgrade {
|
||||
sudo mv "$MIAOU_BASH_DIR" "$backup"
|
||||
curl -s --output /tmp/miaou-bash-install.sh "$INSTALL_URL"
|
||||
|
||||
# if "$backup"/install.sh upgraded; then
|
||||
# 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/"
|
||||
if [[ $(find "$backup"/hooks.d -maxdepth 1 -type f | wc -l) -gt 0 ]]; then
|
||||
sudo mv "$backup"/hooks.d/* "$MIAOU_BASH_DIR"/hooks.d/
|
||||
fi
|
||||
sudo rm -rf "$backup"
|
||||
cat <<EOF
|
||||
To reset this session, you can run:
|
||||
|
||||
Reference in New Issue
Block a user