forked from blek/bshchk
1
0
Fork 0
bshchk/build.sh

6 lines
135 B
Bash
Executable File

#!/bin/sh
ver=$(git describe --tags 2> /dev/null)
if [ "$ver" == "" ]; then ver='master'; fi
go build -ldflags "-X main.version=$ver"