github.com/xushiwei/go@v0.0.0-20130601165731-2b9d83f45bc9/misc/dist/darwin/scripts/preinstall (about) 1 #!/bin/bash 2 3 GOROOT=/usr/local/go 4 5 echo "Removing previous installation" 6 if [ -d $GOROOT ]; then 7 rm -r $GOROOT 8 fi