#!/bin/bash VERSION=$(git tag | tail -n 1) if [[ -z $VERSION ]] then VERSION="dev" fi echo 'package main var version = "'${VERSION}'"' > version.go