Help with Bash script

Posted by Andrew on Ask Ubuntu See other posts from Ask Ubuntu or by Andrew
Published on 2012-06-27T19:11:23Z Indexed on 2012/06/27 21:26 UTC
Read the original article Hit count: 378

Filed under:
#!/bin/bash
if [ "$(Which gimp)" != ""]
then
{
  if [ "$(gimp -version)" != 2.8 ]
  then
{
sudo apt-get remove gimp
sudo add-apt-repository ppa:otto-kesselgulasch/gimp
sudo apt-get update
sudo apt-get install gimp
}
else 
  echo You already have gimp 2.8
fi  
}
else
{
  sudo add-apt-repository ppa:otto-kesselgulasch/gimp
  sudo apt-get update
  sudo apt-get install gimp
}
fi      

I am trying to make a gimp 2.8 installer in bash Please help me?

© Ask Ubuntu or respective owner

Related posts about bash