1
0
Fork 0
forked from RP1/RaveOS-arch

progs update script

This commit is contained in:
RP1 2025-01-21 00:14:18 +01:00
parent d2c7ec3623
commit 7dd28d8424

40
progrs-update.sh Normal file
View file

@ -0,0 +1,40 @@
#!/bin/bash
# RP Program Update Script
# Text Colours
bold=$(tput bold) # ${bold}
normal=$(tput sgr0) # ${normal}
yellow=$(tput setaf 3) # ${yellow}
desktop=$XDG_CURRENT_DESKTOP
if [[ "$desktop" == GNOME ]]; then
${bold}${yellow}echo GNOME Detected - Updating GNOME Program Pkg${normal}
mkdir cosmetics
cd cosmetics
wget -O cosmetics.zip https://files.rp1.hu/api/public/dl/K7znaGkC/
unzip cosmetics.zip
curl -Ls https://links.rp1.hu/3progs -o /home/$USER/.progs/3progs.sh
rsync -ap --info=progress2 content/. /home/$USER/.progs/
cd
rm -rf cosmetics
echo ${bold}${yellow}GNOME Program Pkg Updated successfully!${normal}
else
${bold}${yellow}echo KDE Detected - Updating KDE Program Pkg${normal}
mkdir cosmetics
cd cosmetics
wget -O cosmetics-kde.zip https://files.rp1.hu/api/public/dl/hplmYZoB/
unzip cosmetics-kde.zip
curl -Ls https://links.rp1.hu/3progs -o /home/$USER/.progs/3progs.sh
cd content
rsync -ap --info=progress2 content/. /home/$USER/.progs/
echo ${bold}${yellow}KDE Program Pkg Updated successfully!${normal}
fi
zenity --info --text='Program Csomag Frissitve! Nincs szukseg ujrainditasra!'