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