github.com/roboticscm/goman@v0.0.0-20210203095141-87c07b4a0a55/misc/makerelease/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