dispatch/install.sh
Ken-Håvard Lieng b54cb42426 Setup goreleaser
2018-11-17 10:32:02 +01:00

10 lines
270 B
Bash
Executable File

#!/usr/bin/env bash
Import="github.com/khlieng/dispatch/commands"
Version=$(git describe --tags)
Commit=$(git rev-parse --short HEAD)
Date=$(date +'%Y-%m-%dT%TZ')
go install -ldflags "-s -w -X $Import.version=$Version -X $Import.commit=$Commit -X $Import.date=$Date"