Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
#
# Use this script with sudo to install multiple golang
# installations.
if [[ $(id -u) -ne 0 ]] ; then echo "This script should be run using
sudo or as the root user" ; exit 1 ;
fi
# Ensure the user wants to rm the contents of /opt/golang!