From bed570666d83937b1d606967360ca0c181ad8169 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Wed, 12 Mar 2025 19:44:52 +0900 Subject: [PATCH] updated ags.sh --- install-scripts/ags.sh | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/install-scripts/ags.sh b/install-scripts/ags.sh index 9227098..ab190e3 100755 --- a/install-scripts/ags.sh +++ b/install-scripts/ags.sh @@ -74,8 +74,8 @@ done #install typescript by npm sudo npm install --global typescript 2>&1 | tee -a "$LOG" -# ags -printf "${INFO} Install and Compiling ${SKY_BLUE}Aylur's GTK shell $ags_tag${RESET} .. \n" +# ags v1 +printf "${NOTE} Install and Compiling ${SKY_BLUE}Aylur's GTK shell $ags_tag${RESET}..\n" # Check if folder exists and remove it if [ -d "ags" ]; then @@ -83,23 +83,24 @@ if [ -d "ags" ]; then rm -rf "ags" fi -# Clone nwg-look repository with the specified tag -if git clone --recursive -b "$ags_tag" --depth=1 https://github.com/Aylur/ags.git; then - cd ags || exit 1 - # Build and install ags - npm install - meson setup build - if sudo meson install -C build 2>&1 | tee -a "$MLOG"; then - printf "${OK} ${YELLOW}Aylur's GTK shell $ags_tag${RESET} installed successfully.\n" 2>&1 | tee -a "$MLOG" - else - echo -e "${ERROR} Installation failed for ${YELLOW}Aylur's GTK shell $ags_tag${RESET}" 2>&1 | tee -a "$MLOG" - fi - +printf "\n%.0s" {1..1} +printf "${INFO} Kindly Standby...cloning and compiling ${SKY_BLUE}Aylur's GTK shell $ags_tag${RESET}...\n" +printf "\n%.0s" {1..1} +# Clone repository with the specified tag and capture git output into MLOG +if git clone --depth=1 https://github.com/JaKooLit/ags_v1.9.0.git; then + cd ags_v1.9.0 || exit 1 + npm install + meson setup build + if sudo meson install -C build 2>&1 | tee -a "$MLOG"; then + printf "\n${OK} ${YELLOW}Aylur's GTK shell $ags_tag${RESET} installed successfully.\n" 2>&1 | tee -a "$MLOG" + else + echo -e "\n${ERROR} ${YELLOW}Aylur's GTK shell $ags_tag${RESET} Installation failed\n " 2>&1 | tee -a "$MLOG" + fi # Move logs to Install-Logs directory mv "$MLOG" ../Install-Logs/ || true cd .. else - echo -e "${ERROR} Failed to download ${YELLOW}Aylur's GTK shell $ags_tag${RESET} . Please check your connection" 2>&1 | tee -a "$LOG" + echo -e "\n${ERROR} Failed to download ${YELLOW}Aylur's GTK shell $ags_tag${RESET} Please check your connection\n" 2>&1 | tee -a "$LOG" mv "$MLOG" ../Install-Logs/ || true exit 1 fi