Skip to content

Commit

Permalink
Expand to work with directory structure of CI tarballs
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanspw authored Apr 29, 2024
1 parent 1db8e2a commit d65c6fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/version
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ if test -d .git; then
commit=$(git describe --always --dirty)
echo "${branch}-${commit}"
fi
elif [[ "$(basename $(pwd))" =~ ^jq-jq-([0-9]+\.[0-9]+(\.[0-9]+)?)$ ]]; then
echo ${BASH_REMATCH[1]}
elif [[ "$(basename $(pwd))" =~ ^jq-(jq-)?([0-9]+\.[0-9]+(\.[0-9]+)?)$ ]]; then
echo ${BASH_REMATCH[2]}
else
exit 1
fi

0 comments on commit d65c6fd

Please sign in to comment.