shell/uninstall/grub-customizer

20 lines
477 B
Plaintext
Raw Normal View History

2024-07-31 15:40:43 +00:00
#!/bin/bash
##makedesc: Uninstall grub-customizer with ppa
2024-11-24 13:13:37 +00:00
source "$( dirname $(readlink -e -- "${BASH_SOURCE}"))/../helpers.sh" || exit 255
2024-07-31 15:40:43 +00:00
title
source_file="/etc/apt/sources.list.d/$(ls -1 /etc/apt/sources.list.d/ | grep danielrichter2007)"
sudo apt remove -y --autoremove grub-customizer && \
[ -f "$source_file" ] && {
sudo rm "$source_file" && \
sudo apt update
}
[ $? = 0 ] && {
echo
success "grub-customizer uninstalled!"
echo
}