Skip to content

Instantly share code, notes, and snippets.

@nestorwheelock
Created August 10, 2021 23:21
Show Gist options
  • Save nestorwheelock/01e2ee3a13531d514b47ee710444c5c1 to your computer and use it in GitHub Desktop.
Save nestorwheelock/01e2ee3a13531d514b47ee710444c5c1 to your computer and use it in GitHub Desktop.
#!/bin/sh
# small script to build and install go programs using their github url as an argument
# Copyright 2021 by Nestor Wheelock
# License: GPLv3
git clone ${1}
APP=`echo "${1}" | awk -F"/" '{print $NF}'`
cd "${APP}"
go build .
mv ${APP} /usr/local/bin/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment