Advertisement
Guest User

Untitled

a guest
May 30th, 2015
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. if [[ -z "$(which git)" ]]; then sudo apt-get install -yq git; fi
  4. if [[ -z "$(which gcc)" ]]; then sudo apt-get install -yq build-essential; fi
  5.  
  6. TMP=$(mktemp -d)
  7. trap "rm -rf $TMP" EXIT
  8.  
  9. installLocation=~/goroot1.4.1
  10. echo -n "Install location? [$installLocation] "
  11. read installLocation
  12.  
  13. cd $TMP
  14. echo $installLocation
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement