installer erweitert mit /dev/null und echo

This commit is contained in:
Désiré Werner Menrath 2023-11-02 07:06:17 +01:00
parent 3cfbeac56b
commit da3dbfbdd5

View File

@ -14,18 +14,23 @@ echo Wire-G wird installiert.
if grep -i 'mint\|debian\|ubuntu\|pop|' /etc/os-release > /dev/null 2>&1 if grep -i 'mint\|debian\|ubuntu\|pop|' /etc/os-release > /dev/null 2>&1
then then
if ! which yad > /dev/null ; then sudo apt install yad ; fi if ! which yad > /dev/null ; then sudo apt install yad -y > /dev/null
if ! which notify-send > /dev/null ; then sudo apt install libnotify-bin ; fi echo yad wird installiert. Bitte warten...
if ! which notify-send > /dev/null ; then sudo apt install libnotify-bin -y > /dev/null
echo libnotify wird installiert. Bitte warten...
elif grep -i 'arch\|manjaro\|garuda\|endeavour|' /etc/os-release > /dev/null 2>&1 elif grep -i 'arch\|manjaro\|garuda\|endeavour|' /etc/os-release > /dev/null 2>&1
then then
if ! which yad > /dev/null ; then sudo pacman -S yad ; fi if ! which yad > /dev/null ; then sudo pacman -S --noconfirm yad > /dev/null
if ! which notify-send > /dev/null ; then sudo pacman -S libnotify ; fi echo yad wird installiert. Bitte warten...
if ! which notify-send > /dev/null ; then sudo pacman -S --noconfirm libnotify > /dev/null
echo libnotify wird installiert. Bitte warten...
elif grep -i 'fedora' /etc/os-release > /dev/null 2>&1 elif grep -i 'fedora' /etc/os-release > /dev/null 2>&1
then then
if ! which yad > /dev/null ; then sudo dnf install yad ; fi if ! which yad > /dev/null ; then sudo dnf install yad > /dev/null
if ! which notify-send > /dev/null ; then sudo dnf install libnotify ; fi echo yad wird installiert. Bitte warten...
if ! which notify-send > /dev/null ; then sudo dnf install libnotify > /dev/null
echo libnotify wird installiert. Bitte warten...
elif grep -i 'suse' /etc/os-release > /dev/null 2>&1 elif grep -i 'suse' /etc/os-release > /dev/null 2>&1
then then