installer korrektur

This commit is contained in:
Désiré Werner Menrath 2023-10-29 10:27:12 +01:00
parent adbb5fb677
commit 95fac435a8

View File

@ -9,24 +9,23 @@ a_user=$(whoami)
mkdir -p /home/"$a_user"/.icons ; cp icons/* /home/"$a_user"/.icons/ ; mkdir -p /home/"$a_user"/.config/wg_nmcli
wait;
echo Icons erfolgreich installiert
wait;
# abfrage ob yad installiert ist, wenn nicht dann installiere automatisch yad. Nur Debian basierende Systeme!
echo Wire-G wird installiert.
# abfrage ob benötigte pakete installiert sind, wenn nicht dann installiere automatisch die benötigten Pakete.
if ! which yad >/dev/null
then
if grep -i 'mint\|debian\|ubuntu\|pop|' /etc/os-release > /dev/null 2>&1
then
sudo apt install yad
if ! which yad > /dev/null ; then sudo apt install yad
elif ! which notify-send ; then sudo apt install libnotify-bin ; fi
elif grep -i 'arch\|manjaro\|garuda\|endeavour|' /etc/os-release > /dev/null 2>&1
then
sudo pacman -S yad
if ! which yad > /dev/null ; then sudo pacman -S yad
elif ! which notify-send ; then sudo pacman -S libnotify ; fi
elif grep -i 'fedora' /etc/os-release > /dev/null 2>&1
then
sudo dnf install yad
if ! which yad > /dev/null ; then sudo dnf install yad
elif ! which notify-send ; then sudo dnf install libnotify
elif grep -i 'suse' /etc/os-release > /dev/null 2>&1
then