Hi!
I’m preparing a bash script to easy my life in others Leap installations. But I have a doubt, how can I answer “yes to all” in this script? I mean, to trust in all keys and install everything without stop. Suggestions?
#!/bin/bash# For openSUSE Leap 42.2
sudo zypper up
sudo zypper dist-upgrade
echo "Packman and Libdvdcss repos for multimedia"
zypper ar -f packman http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_42.2/
zypper ar -f libdvdcss http://opensuse-guide.org/repo/openSUSE_Leap_42.2/
echo "Installing multimedia packages"
sudo zypper install ffmpeg lame gstreamer-plugins-bad gstreamer-plugins-ugly gstreamer-plugins-ugly-orig-addon gstreamer-plugins-libav libdvdcss2
sudo zypper dist-upgrade
echo "Installing apps"
sudo zypper install inkscape gimp lollypop bleachbit unetbootin wine xournal kile goldendict pdfchain uget steam octave vlc r-base git kdenlive audacity simplescreenrecorder gpsbabel
zypper ar -f http://download.opensuse.org/repositories/home:/stefjakobs/openSUSE_Leap_42.2/
sudo zypper install jabref
zypper ar -f http://download.opensuse.org/repositories/home:/beyerle:/IAC/openSUSE_Leap_42.2/
sudo zypper install rstudio
zypper ar -f http://download.opensuse.org/repositories/home:/awissu/openSUSE_Leap_42.2/
sudo zypper install brackets
zypper ar -f http://download.opensuse.org/repositories/home:/awissu/openSUSE_Leap_42.2/
sudo zypper install brackets
zypper ar -f http://download.opensuse.org/repositories/home:/luke_nukem/openSUSE_Leap_42.2/
sudo zypper install gitkraken
zypper ar -f http://download.opensuse.org/repositories/games:/tools/openSUSE_Leap_42.2/
sudo zypper install playonlinux
zypper ar -f http://download.opensuse.org/repositories/Application:/Geo/openSUSE_Leap_42.2/
sudo zypper install viking
echo "Finishing"
sudo zypper verify
sudo zypper clean
echo "Reboot?"
select yn in "Yes" "No"; do
case $yn in
Yes ) sudo reboot;;
No ) exit;;
esac
done