mirror of
https://github.com/JaKooLit/Debian-Hyprland.git
synced 2025-12-21 10:20:12 +01:00
another tweak
This commit is contained in:
parent
d74929e095
commit
e11c134b59
@ -100,13 +100,13 @@ uninstall_package() {
|
|||||||
|
|
||||||
# Checking if package is installed
|
# Checking if package is installed
|
||||||
if sudo dpkg -l | grep -q -w "^ii $1" ; then
|
if sudo dpkg -l | grep -q -w "^ii $1" ; then
|
||||||
echo -e "${NOTE} Uninstalling $pkg ..."
|
echo -e "${NOTE} removing $pkg ..."
|
||||||
sudo apt autoremove -y "$1" >> "$LOG" 2>&1 | grep -v "error: target not found"
|
sudo apt autoremove -y "$1" >> "$LOG" 2>&1 | grep -v "error: target not found"
|
||||||
|
|
||||||
if ! dpkg -l | grep -q -w "^ii $1" ; then
|
if ! dpkg -l | grep -q -w "^ii $1" ; then
|
||||||
echo -e "\e[1A\e[K${OK} ${MAGENTA}$1${RESET} was uninstalled."
|
echo -e "\e[1A\e[K${OK} ${MAGENTA}$1${RESET} removed."
|
||||||
else
|
else
|
||||||
echo -e "\e[1A\e[K${ERROR} $pkg failed to uninstall. No actions required."
|
echo -e "\e[1A\e[K${ERROR} $pkg Removal failed. No actions required."
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user