diff --git a/Cargo.lock b/Cargo.lock index 6b894b5..1d32d89 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1600,7 +1600,7 @@ dependencies = [ [[package]] name = "pagetop-build" -version = "0.1.1" +version = "0.1.0" dependencies = [ "grass", "static-files", diff --git a/helpers/pagetop-build/Cargo.toml b/helpers/pagetop-build/Cargo.toml index 4769631..7bf6048 100644 --- a/helpers/pagetop-build/Cargo.toml +++ b/helpers/pagetop-build/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pagetop-build" -version = "0.1.1" +version = "0.1.0" edition = "2021" description = """ diff --git a/tools/changelog.sh b/tools/changelog.sh index eb4ab7e..09ffcb0 100755 --- a/tools/changelog.sh +++ b/tools/changelog.sh @@ -90,7 +90,7 @@ if [[ ! "$REPLY" =~ ^[Yy]$ ]]; then fi # Si hay cambios y procede, añade al stage (cargo-release hará el commit) -if git status --porcelain -- "$CHANGELOG_FILE" | grep -qE '^( M|A |??)'; then +if [[ -n $(git status --porcelain -- "$CHANGELOG_FILE") ]]; then if [[ "$STAGE" == "--stage" ]]; then git add "$CHANGELOG_FILE" echo "Staged $CHANGELOG_FILE for commit"