1 2 3 4 5 6 7 8
#!/bin/bash GOROOT=/usr/local/go echo "Removing previous installation" if [ -d $GOROOT ]; then rm -r $GOROOT fi