bshchk/build.sh

6 lines
135 B
Bash
Raw Normal View History

2024-06-02 11:32:17 +02:00
#!/bin/sh
ver=$(git describe --tags 2> /dev/null)
if [ "$ver" == "" ]; then ver='master'; fi
go build -ldflags "-X main.version=$ver"