123456789101112131415161718192021 |
- #!/bin/bash
- # fail if any commands fails
- set -e
- # debug log
- #set -x
- # Set superuser privileges command if not set
- if [[ -z $su ]]; then
- export su="sudo"
- fi
- $su apt-get update -qq
- $su apt-get install -qq -y curl
- mkdir -p ~/Downloads
- cd ~/Downloads || return
- curl -OL "https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb"
- $su apt install ./google-chrome-stable_current_amd64.deb
- rm ~/Downloads/google-chrome-stable_current_amd64.deb
|