🚨 Important: If you're in the US, remember to vote on Tuesday November 5th! 🗳️
🇺🇸 Also check your voter registration, some states have been purging voting rolls. 🇺🇸
Incrementing a Semantic Version String in Bash
2019 April 30
I wrote a bash function that takes a semantic version string and bumps
the version number. It supports all 3 layers. I needed it for the deploy
script I was working on. It’s fairly trivial, I just thought I would
share it.
Semantic versioning is a 3 number version string consisting of a major,
minor, and revision number. This function allows you to bump any one of
those numbers and reset the earlier numbers. Semantic versioning tends
to be a fairly popular scheme and is mandatory for certain frameworks
like WordPress.