Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- if [[ -z "$(which git)" ]]; then sudo apt-get install -yq git; fi
- if [[ -z "$(which gcc)" ]]; then sudo apt-get install -yq build-essential; fi
- TMP=$(mktemp -d)
- trap "rm -rf $TMP" EXIT
- installLocation=~/goroot1.4.1
- echo -n "Install location? [$installLocation] "
- read installLocation
- cd $TMP
- echo $installLocation
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement