shell-semver
shell-semver copied to clipboard
Increment semantic versioning strings in Bash shell scripts.
When making release, I need to know in some scenarios previous version. Please add `-i` (or similar) option support for inverse direction
Avoid a non-zero return code when incrementing the version from a starting value of 0. ``` $ A=0; ((A++)); echo "ret: $?, A: $A" ret: 1, A: 1 $ A=0;...
modification to handle version input either via command line (how it worked) or as piped stdin input: ```console $ echo "1.2.3" | ./increment_version.sh -p 1.2.4 ```