Skip to content

Commit

Permalink
fix(version): search for .sh
Browse files Browse the repository at this point in the history
  • Loading branch information
sambacha committed Jul 17, 2023
1 parent 8d9fe10 commit 9c5b8d4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions hash-version.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/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
HASH_VERSION=$(git rev-parse --short HEAD 2>/dev/null || find ./* -type f -name '*.sh' -print0 | sort -z | xargs -0 sha1sum | sha1sum | sed -r 's/[^\da-f]+//g')
echo "$HASH_VERSION"
exut 0

0 comments on commit 9c5b8d4

Please sign in to comment.