Skip to content

Commit

Permalink
Fixed digit regex for GNU egrep.
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
brixen committed Dec 21, 2015
1 parent 3a38227 commit 6c68367
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/configuration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ function rbx_get_revision {
commit_count=".c$count"
fi

version=$(echo "$describe" | egrep -o '^v\d+\.\d+' | cut -c 2-)
commit_date=$(git show --format="%ci" HEAD | egrep -o '\d+-\d+-\d+')
version=$(echo "$describe" | egrep -o '^v[[:digit:]]+\.[[:digit:]]+' | cut -c 2-)
commit_date=$(git show --format="%ci" HEAD | egrep -o '[[:digit:]]+-[[:digit:]]+-[[:digit:]]+')
commit_hash=$(echo "$describe" | egrep -o '[[:xdigit:]]{8,}$')

echo "$version$commit_count $commit_date $commit_hash"
Expand Down

0 comments on commit 6c68367

Please sign in to comment.