updated rofi-wayland.sh To redownload a new rofi-wayland from repo instead of pulling changes. (It proves giving issue)

This commit is contained in:
JaKooLit 2024-06-10 00:30:55 +09:00
parent 35d8754c3d
commit 1f679a7330
2 changed files with 12 additions and 9 deletions

View File

@ -1,5 +1,8 @@
## Changelogs ## 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 ## 04 June 2024
- switched over to source install for imagemagick - switched over to source install for imagemagick
- removal of fzf for Debian and Ubuntu (headache) - removal of fzf for Debian and Ubuntu (headache)

View File

@ -55,17 +55,17 @@ printf "${NOTE} Installing rofi-wayland...\n"
# Check if rofi folder exists # Check if rofi folder exists
if [ -d "rofi" ]; then 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 cd rofi || exit 1
git pull origin master 2>&1 | tee -a "$MLOG"
else else
printf "${NOTE} Cloning rofi repository...\n" echo -e "${ERROR} Download failed for rofi-wayland." 2>&1 | tee -a "$LOG"
if git clone https://github.com/lbonn/rofi.git; then exit 1
cd rofi || exit 1
else
echo -e "${ERROR} Download failed for rofi-wayland." 2>&1 | tee -a "$LOG"
exit 1
fi
fi fi
# Proceed with the installation steps # Proceed with the installation steps