@@ -1,43 +0,0 @@
3−# Parse command line arguments
5−while [ "$#" -gt 0 ]; do
7− --minor) minor=true; shift 1;;
8− *) echo "Unknown parameter: $1"; exit 1;;
12−git fetch --force --tags
14−# Get the latest Git tag
15−latest_tag=$(git tag --sort=committerdate | grep -E '[0-9]' | tail -1)
17−# If there is no tag, exit the script
18−if [ -z "$latest_tag" ]; then
23−echo "Latest tag: $latest_tag"
25−# Split the tag into major, minor, and patch numbers
26−IFS='.' read -ra VERSION <<< "$latest_tag"
28−if [ "$minor" = true ]; then
29− # Increment the minor version and reset patch to 0
30− minor_number=${VERSION[1]}
32− new_version="${VERSION[0]}.$minor_number.0"
34− # Increment the patch version
35− patch_number=${VERSION[2]}
37− new_version="${VERSION[0]}.${VERSION[1]}.$patch_number"
40−echo "New version: $new_version"