From 8945ba58d17fff59e15dd2da83d1daac6c00bcb8 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Mon, 10 Jun 2024 00:30:59 +0900 Subject: [PATCH] updated rofi-wayland.sh To redownload a new rofi-wayland from repo instead of pulling changes. (It proves giving issue) --- CHANGELOGS.md | 3 +++ install-scripts/rofi-wayland.sh | 20 +++++++++----------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/CHANGELOGS.md b/CHANGELOGS.md index 846d1b8..963257c 100644 --- a/CHANGELOGS.md +++ b/CHANGELOGS.md @@ -1,5 +1,8 @@ ## Changelogs +## 10 June 2024 +- changed behaviour of rofi-wayland.sh. To redownload a new rofi-wayland from repo instead of pulling changes. (It proves giving issue) + ## 04 June 2024 - switched over to source install for imagemagick - removal of fzf for Debian and Ubuntu (headache) diff --git a/install-scripts/rofi-wayland.sh b/install-scripts/rofi-wayland.sh index f5d416f..80f7de6 100755 --- a/install-scripts/rofi-wayland.sh +++ b/install-scripts/rofi-wayland.sh @@ -53,21 +53,19 @@ printf "\n\n" # Clone and build rofi - wayland printf "${NOTE} Installing rofi-wayland...\n" -printf "${NOTE} Installing rofi-wayland\n" - # Check if rofi folder exists if [ -d "rofi" ]; then - printf "${NOTE} rofi folder exists. Pulling latest changes...\n" + printf "${NOTE} rofi folder exists. Removing existing directory...\n" + rm -rf rofi +fi + +# cloning rofi-wayland +printf "${NOTE} Cloning rofi-wayland repository...\n" +if git clone https://github.com/lbonn/rofi.git; then cd rofi || exit 1 - git pull origin master 2>&1 | tee -a "$MLOG" else - printf "${NOTE} Cloning rofi repository...\n" - if git clone https://github.com/lbonn/rofi.git; then - cd rofi || exit 1 - else - echo -e "${ERROR} Download failed for rofi-wayland." 2>&1 | tee -a "$LOG" - exit 1 - fi + echo -e "${ERROR} Download failed for rofi-wayland." 2>&1 | tee -a "$LOG" + exit 1 fi # Proceed with the installation steps