mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-06-27 20:06:52 +00:00
Update uninstall-tools.sh
This commit is contained in:
parent
3acf775b33
commit
07ceb4e388
@ -49,11 +49,42 @@ uninstall_fastfetch() {
|
||||
read -r
|
||||
}
|
||||
|
||||
|
||||
# ==========================================================
|
||||
|
||||
uninstall_figurine() {
|
||||
if ! command -v figurine &>/dev/null; then
|
||||
msg_warn "$(translate "Figurine is not installed.")"
|
||||
return 0
|
||||
fi
|
||||
|
||||
msg_info2 "$(translate "Uninstalling Figurine...")"
|
||||
|
||||
rm -f /usr/local/bin/figurine
|
||||
rm -f /etc/profile.d/figurine.sh
|
||||
sed -i '/figurine/d' "$HOME/.bashrc" "$HOME/.profile" 2>/dev/null
|
||||
|
||||
msg_ok "$(translate "Figurine removed from system")"
|
||||
msg_success "$(translate "You can reinstall it anytime from the post-installation script")"
|
||||
msg_success "$(translate "Press ENTER to continue...")"
|
||||
read -r
|
||||
}
|
||||
|
||||
# ==========================================================
|
||||
|
||||
show_uninstall_menu() {
|
||||
local options=()
|
||||
|
||||
if command -v fastfetch &>/dev/null; then
|
||||
options+=("1" "$(translate "Uninstall Fastfetch")")
|
||||
options+=("$index" "$(translate "Uninstall Fastfetch")")
|
||||
local fastfetch_option="$index"
|
||||
index=$((index + 1))
|
||||
fi
|
||||
|
||||
if command -v figurine &>/dev/null; then
|
||||
options+=("$index" "$(translate "Uninstall Figurine")")
|
||||
local figurine_option="$index"
|
||||
index=$((index + 1))
|
||||
fi
|
||||
|
||||
if [ ${#options[@]} -eq 0 ]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user