fix: handle same-version bump gracefully in justfile

This commit is contained in:
2025-12-28 14:42:32 +01:00
parent f0f0d87313
commit 0daacebca5

View File

@@ -49,6 +49,10 @@ show-version:
bump new_version:
#!/usr/bin/env bash
set -euo pipefail
if [ "{{version}}" = "{{new_version}}" ]; then
echo "Version is already {{new_version}}, skipping bump"
exit 0
fi
echo "Bumping version from {{version}} to {{new_version}}"
sed -i 's/^version = ".*"/version = "{{new_version}}"/' Cargo.toml
cargo check