~whereswaldon/gover

c84e9b215ac60ac7b804480af4886c0c92c9592d — Chris Waldon 4 years ago 3582c92
feat: infer PREFIX from install location
1 files changed, 2 insertions(+), 1 deletions(-)

M gover
M gover => gover +2 -1
@@ 7,9 7,10 @@ current_os() {
    uname | tr '[:upper:]' '[:lower:]'
}

SCRIPT_DIR=$(cd "$(dirname "$0")" && pwd)
MINOR=${1:-14}
PATCH=${2:-6}
PREFIX=${PREFIX:-$HOME/.local}
PREFIX=${PREFIX:-$(dirname "$SCRIPT_DIR")}
GOOS=$(current_os)
GOARCH=amd64 # TODO: find a portable way to determine this without go installed