Skip to content

Commit

Permalink
Sed fix for macos (#1323)
Browse files Browse the repository at this point in the history
Co-authored-by: Artem Ponomarev <[email protected]>
Co-authored-by: kamilsa <[email protected]>
  • Loading branch information
3 people authored Aug 17, 2022
1 parent 598503c commit b7c0cdc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions get_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ if [ -x "$(which git 2>/dev/null)" ] && [ -d ".git" ]; then
DESCR=$HEAD-0-g$HEAD
fi

TAG_IN_MASTER=$(echo $DESCR | sed "s/v\?\(.*\)-\([0-9]\+\)\-g\w\+/\1/")
TAG_TO_FORK_DISTANCE=$(echo $DESCR | sed "s/\(.*\)-\([0-9]\+\)\-g\w\+/\2/")
TAG_IN_MASTER=$(echo $DESCR | sed -E "s/v?(.*)-([0-9]+)-g[a-f0-9]+/\1/")
TAG_TO_FORK_DISTANCE=$(echo $DESCR | sed -E "s/v?(.*)-([0-9]+)-g[a-f0-9]+/\2/")

BRANCH=$(git branch --show-current)
if [ "$BRANCH" = "" ]; then
Expand Down

0 comments on commit b7c0cdc

Please sign in to comment.