Skip to content

Commit 16265a0

Browse files
authored
Create hash-version.sh
1 parent c32b43c commit 16265a0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

hash-version.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
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')
3+
echo $HASH_VERSION

0 commit comments

Comments
 (0)