From 1e2704bc238dc9edebeb9804f775153d2ad95de3 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Thu, 6 Feb 2025 12:23:59 +0900 Subject: [PATCH] another tweak --- install-scripts/Global_functions.sh | 8 ++++---- install-scripts/nvidia.sh | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/install-scripts/Global_functions.sh b/install-scripts/Global_functions.sh index b697414..eea9e82 100755 --- a/install-scripts/Global_functions.sh +++ b/install-scripts/Global_functions.sh @@ -94,19 +94,19 @@ install_package() { fi } -# Function for uninstalling packages +# Function for removing packages uninstall_package() { local pkg="$1" # Checking if package is installed if pacman -Qi "$pkg" &>/dev/null; then - echo -e "${NOTE} Uninstalling $pkg ..." + echo -e "${NOTE} removing $pkg ..." sudo pacman -R --noconfirm "$pkg" 2>&1 | tee -a "$LOG" | grep -v "error: target not found" if ! pacman -Qi "$pkg" &>/dev/null; then - echo -e "\e[1A\e[K${OK} $pkg was uninstalled." + echo -e "\e[1A\e[K${OK} $pkg removed." 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 fi else diff --git a/install-scripts/nvidia.sh b/install-scripts/nvidia.sh index 14f6082..332bd2e 100755 --- a/install-scripts/nvidia.sh +++ b/install-scripts/nvidia.sh @@ -31,7 +31,7 @@ LOG="Install-Logs/install-$(date +%d-%H%M%S)_nvidia.log" # nvidia stuff printf "${YELLOW} Checking for other hyprland packages and remove if any..${RESET}\n" if pacman -Qs hyprland > /dev/null; then - printf "${YELLOW} Hyprland detected. uninstalling to install Hyprland from official repo...${RESET}\n" + printf "${YELLOW} Hyprland detected. removing to install Hyprland from official repo...${RESET}\n" for hyprnvi in hyprland-git hyprland-nvidia hyprland-nvidia-git hyprland-nvidia-hidpi-git; do sudo pacman -R --noconfirm "$hyprnvi" 2>/dev/null | tee -a "$LOG" || true done