From 62dd1a27cfe046aa4cb3fb7d0898b6f531ba8ef9 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Thu, 6 Feb 2025 13:06:11 +0900 Subject: [PATCH] another tweak for ags.sh --- install-scripts/ags.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/install-scripts/ags.sh b/install-scripts/ags.sh index 59f3cdd..498e268 100755 --- a/install-scripts/ags.sh +++ b/install-scripts/ags.sh @@ -2,15 +2,6 @@ # 💫 https://github.com/JaKooLit 💫 # # Aylur's GTK Shell # -# Check if AGS is installed -if command -v ags &>/dev/null; then - AGS_VERSION=$(ags -v | awk '{print $NF}') - if [[ "$AGS_VERSION" == "1.9.0" ]]; then - printf "${INFO} ${MAGENTA}Aylur's GTK Shell v1.9.0${RESET} is already installed. Skipping installation." - exit 0 - fi -fi - ags=( node-typescript npm @@ -50,6 +41,15 @@ source "$(dirname "$(readlink -f "$0")")/Global_functions.sh" LOG="Install-Logs/install-$(date +%d-%H%M%S)_ags.log" MLOG="install-$(date +%d-%H%M%S)_ags2.log" +# Check if AGS is installed +if command -v ags &>/dev/null; then + AGS_VERSION=$(ags -v | awk '{print $NF}') + if [[ "$AGS_VERSION" == "1.9.0" ]]; then + printf "${INFO} ${MAGENTA}Aylur's GTK Shell v1.9.0${RESET} is already installed. Skipping installation." + exit 0 + fi +fi + # Installation of main components printf "\n%s - Installing ${SKY_BLUE}Aylur's GTK shell $ags_tag${RESET} Dependencies \n" "${INFO}"