Skip to content

Instantly share code, notes, and snippets.

@gmanny
gmanny / goinst.sh
Last active August 29, 2015 14:19 — forked from jmervine/goinst.sh
#!/usr/bin/env bash
#
# Example usage:
#
# $ VERSION=1.3 sudo ./goinst.sh
if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root" 1>&2
exit 1
fi