Skip to content

Commit

Permalink
Create hash-version.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
sambacha authored Apr 25, 2022
1 parent c32b43c commit 16265a0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hash-version.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 16265a0

Please sign in to comment.