06.install_googlechrome.sh 459 B

123456789101112131415161718192021
  1. #!/bin/bash
  2. # fail if any commands fails
  3. set -e
  4. # debug log
  5. #set -x
  6. # Set superuser privileges command if not set
  7. if [[ -z $su ]]; then
  8. export su="sudo"
  9. fi
  10. $su apt-get update -qq
  11. $su apt-get install -qq -y curl
  12. mkdir -p ~/Downloads
  13. cd ~/Downloads || return
  14. curl -OL "https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb"
  15. $su apt install ./google-chrome-stable_current_amd64.deb
  16. rm ~/Downloads/google-chrome-stable_current_amd64.deb