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