Created
August 10, 2021 23:21
-
-
Save nestorwheelock/01e2ee3a13531d514b47ee710444c5c1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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