updated uninstall.sh

This commit is contained in:
JaKooLit 2025-03-11 17:36:15 +09:00
parent ee04881461
commit a15c816159

View File

@ -51,7 +51,7 @@ remove_packages() {
# Check if the package is installed using dpkg (apt's underlying tool) # Check if the package is installed using dpkg (apt's underlying tool)
if dpkg -l | grep -q "^ii $package "; then if dpkg -l | grep -q "^ii $package "; then
echo "Removing package: $package" echo "Removing package: $package"
if ! sudo apt remove --purge -y "$package"; then if ! sudo apt remove -y "$package"; then
echo "$ERROR Failed to remove package: $package" echo "$ERROR Failed to remove package: $package"
else else
echo "$OK Successfully removed package: $package" echo "$OK Successfully removed package: $package"