diff --git a/hash-version.sh b/hash-version.sh index a658f4f..63b2318 100644 --- a/hash-version.sh +++ b/hash-version.sh @@ -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