miaou-bash helper function

This commit is contained in:
pvincent
2026-08-23 16:40:06 +04:00
parent 410a5809a8
commit 842df43206
6 changed files with 16 additions and 19 deletions
-7
View File
@@ -227,12 +227,6 @@ function apply_mode {
fi
}
function reload {
[[ $- == *i* ]] && bind -f /etc/inputrc >/dev/null
# shellcheck source=/dev/null
source /etc/bash.bashrc
}
# MAIN
source "$MIAOU_BASH_DIR"/lib/functions.bash
@@ -249,4 +243,3 @@ create_sudoers
fetch_mode
apply_mode
launch_hooks
reload
+1 -4
View File
@@ -61,14 +61,11 @@ function perform_upgrade {
sudo miaou-bash "$MIAOU_BASH_DIR"/lib/initiate.bash
fi
sudo rm -rf "$backup"
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"
sudo mv "$backup" "$MIAOU_BASH_DIR"
builtin exit 99
fi
}
-2
View File
@@ -32,8 +32,6 @@ function uninstall {
cat <<EOF
MIAOU-BASH succesfully uninstalled.
Previous settings have been restored from original.
To reset this session, you can run:
exec bash -l
EOF
}