diff --git a/progrs-update.sh b/progrs-update.sh new file mode 100644 index 0000000..974e5ad --- /dev/null +++ b/progrs-update.sh @@ -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!' \ No newline at end of file