self-upgrade exec bash -l
This commit is contained in:
@@ -51,7 +51,10 @@ function perform_upgrade {
|
||||
sudo mv "$MIAOU_BASH_DIR" "$backup"
|
||||
if "$backup"/install.sh upgraded; then
|
||||
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
|
||||
echo "ERROR: trouble during self-upgrade: revert back"
|
||||
sudo rm -rf "$MIAOU_BASH_DIR"
|
||||
|
||||
Reference in New Issue
Block a user