From 37aef30bbd99433a05852f877e309e63fb0342e2 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Tue, 4 Feb 2025 22:55:31 +0900 Subject: [PATCH] update --- install-scripts/Global_functions.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install-scripts/Global_functions.sh b/install-scripts/Global_functions.sh index 896dc10..02f9660 100755 --- a/install-scripts/Global_functions.sh +++ b/install-scripts/Global_functions.sh @@ -49,8 +49,8 @@ show_progress() { # Function for installing packages with a progress bar install_package() { - if sudo dpkg -l | grep -q -w "$1" ; then - echo -e "${INFO} ${MAGENTA}$1${RESET} is already installed. Skipping..." + if sudo dpkg -l | grep -q -w "$1" ; then + echo -e "${INFO} ${MAGENTA}$1${RESET} is already installed. Skipping..." else ( stdbuf -oL sudo apt-get install -y "$1" 2>&1 @@ -67,6 +67,7 @@ install_package() { echo -e "${ERROR} ${YELLOW}$1${RESET} failed to install. Please check the install.log. You may need to install it manually. Sorry, I have tried :(" return 1 fi + fi } # Function for re-installing packages