2025-01-20 23:14:18 +00:00
|
|
|
#!/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
|
2025-01-24 16:28:20 +00:00
|
|
|
echo ${bold}${yellow}GNOME Detected - Updating GNOME Program Pkg${normal}
|
2025-01-20 23:14:18 +00:00
|
|
|
|
|
|
|
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
|
2025-01-24 16:28:20 +00:00
|
|
|
echo ${bold}${yellow}KDE Detected - Updating KDE Program Pkg${normal}
|
2025-01-20 23:14:18 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
rsync -ap --info=progress2 content/. /home/$USER/.progs/
|
2025-01-23 11:31:01 +00:00
|
|
|
cd
|
2025-01-23 11:27:41 +00:00
|
|
|
rm -rf cosmetics
|
2025-01-20 23:14:18 +00:00
|
|
|
echo ${bold}${yellow}KDE Program Pkg Updated successfully!${normal}
|
|
|
|
fi
|
|
|
|
|
2025-02-06 08:36:26 +00:00
|
|
|
zenity --info --text='Program Csomag Frissitve! Nincs szukseg ujrainditasra!'
|
|
|
|
|
|
|
|
exit 1
|