Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 6d6ebf7

Browse files
committed
chore(scripts): make the release script more flexible
Now the SHA can be short/long, whateva.
1 parent 44b940e commit 6d6ebf7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/jenkins/release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ ARG_DEFS=(
2323
)
2424

2525
function init {
26-
if [[ $(git rev-parse --short HEAD) != $COMMIT_SHA ]]; then
26+
if [[ $(git rev-parse HEAD) != $(git rev-parse $COMMIT_SHA) ]]; then
2727
echo "HEAD is not at $COMMIT_SHA"
2828
usage
2929
fi

0 commit comments

Comments
 (0)