dragonfly/hack/update-version-gorelease.sh

6 lines
142 B
Bash
Executable File

#!/bin/sh
GO_VERSION=$(go version | grep -o 'go[^ ].*')
sed -i "s#\tGoVersion = ".*"#\tGoVersion = \"${GO_VERSION}\"#" version/version.go