Hi, I was making a shell script to install the RPM Fusion repository and install mp3/mp4 codecs when I ran into a problem. It says that "sudo yum install gstreamer-plugins bad;sudo yum install gstreamer-plugins-ugly is an ivalid command, so I copy/pase it into the terminal, and lo and behold, it works. :blink: Here's my code that I made up in Emacs:
Any help is appreciated! Thanks! :)
Code:
#!/bin/bash
#RPM Fusion installer script
clear
echo "Welcome to the RPM Fusion installer script. The first thing we will do is
to update your system. You may be prompted for a password."
read -n1 -r -p "Press ENTER to update..." key ENTER
sudo yum upgrade
echo "Now you are ready to install the RPM Fusion repository."
read -n1 -r -p "Press ENTER to download and install the RPM Fusion repository..." key ENTER
sudo rpm -ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm
sudo rpm -ivh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm
#finishing the install with a question
while true; do
read -p "Do you want to install mp3 and mp4 codecs? (Y/N)" yn
case $yn in
[Yy]* ) "sudo yum install gstreamer-plugins-bad;sudo yum install gstreamer-plugins-ugly"; break;;
[Nn]* ) exit;;
* ) echo "Please answer Y/N, or press <CTRL>+<C> to quit.";;
esac
done
echo "You're done!"
read -n1 -r -p "Press ENTER to exit..." key ENTER
clear