diff --git a/hash-version.sh b/hash-version.sh new file mode 100644 index 0000000..a658f4f --- /dev/null +++ b/hash-version.sh @@ -0,0 +1,3 @@ +#!/bin/sh +HASH_VERSION=$(git rev-parse --short HEAD 2>/dev/null || find * -type f -name '*.go' -print0 | sort -z | xargs -0 sha1sum | sha1sum | sed -r 's/[^\da-f]+//g') +echo $HASH_VERSION