torsdag 5 februari 2015

Linux - Bash add PPA if not exist

  if [ -e "/etc/apt/sources.list.d/pi-rho-security-precise.list" ]
    then
      echo "Already enabled pi-rho"
    else
      sudo apt-add-repository ppa:pi-rho/security
  fi
  }
    

Skicka en kommentar