#!/usr/bin/env bash # Check if there are any changes staged for commit if [[ -z $(git diff --cached --name-only) ]]; then echo "There are no changes staged for commit. Skipping version update." exit 0 fi # Check if the VERSION file is staged for modification if git diff --cached --name-only | grep -q "VERSION"; then echo "The VERSION file is already modified. Skipping version update." exit 0 fi # Read the current version from the VERSION file current_version=$(