self-upgrade exec bash -l

This commit is contained in:
pvincent
2026-08-22 19:40:40 +04:00
parent c65cc9e226
commit dc94af4ede
+4 -1
View File
@@ -51,7 +51,10 @@ function perform_upgrade {
sudo mv "$MIAOU_BASH_DIR" "$backup" sudo mv "$MIAOU_BASH_DIR" "$backup"
if "$backup"/install.sh upgraded; then if "$backup"/install.sh upgraded; then
sudo rm -rf "$backup" sudo rm -rf "$backup"
echo -e "to refresh your shell, you should now perform:\n\texec bash -l" cat <<EOF
To reset this session, you can run:
exec bash -l
EOF
else else
echo "ERROR: trouble during self-upgrade: revert back" echo "ERROR: trouble during self-upgrade: revert back"
sudo rm -rf "$MIAOU_BASH_DIR" sudo rm -rf "$MIAOU_BASH_DIR"