Skip to content

Commit

Permalink
Update version.gen
Browse files Browse the repository at this point in the history
  • Loading branch information
cybergarage committed Oct 27, 2024
1 parent 3c7958f commit db023a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions redis/version.gen
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/sh

major=$(git describe --abbrev=0 --tags | awk -F'.' '{print $1}')
minor=$(git describe --abbrev=0 --tags | awk -F'.' '{print $2}')
patch=$(git describe --abbrev=0 --tags | awk -F'.' '{print ($3+1)}')
major=$(git tag | sort | tail -n 1 | awk -F'.' '{print $1}')
minor=$(git tag | sort | tail -n 1 | awk -F'.' '{print $2}')
patch=$(git tag | sort | tail -n 1 | awk -F'.' '{print ($3+1)}')
version="${major}.${minor}.${patch}"

cat <<EOF
Expand Down

0 comments on commit db023a0

Please sign in to comment.