Skip to content

Commit bccfd9f

Browse files
committed
sed update
1 parent 7725079 commit bccfd9f

1 file changed

Lines changed: 5 additions & 12 deletions

File tree

.github/workflows/release-dispatch-sozo.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
run: |
3535
INPUT_VERSION="${{ inputs.version }}"
3636
37-
if [[ -z "$INPUT_VERSION" ]]; then
37+
if [ -z "$INPUT_VERSION" ]; then
3838
echo "Error: Version input is empty"
3939
exit 1
4040
fi
@@ -45,20 +45,13 @@ jobs:
4545
# Manually update the version in the Cargo.toml files, until we have a proper
4646
# rework of the Dojo crates and Sozo isolation.
4747
48-
set -e pipefail
48+
set -e
4949
50-
SOZO_MANIFESTS=(
51-
"./Cargo.toml"
52-
"../../crates/sozo/mcp/Cargo.toml"
53-
"../../crates/sozo/ops/Cargo.toml"
54-
"../../crates/sozo/signers/Cargo.toml"
55-
"../../crates/sozo/ui/Cargo.toml"
56-
"../../crates/sozo/walnut/Cargo.toml"
57-
)
50+
SOZO_MANIFESTS="./Cargo.toml ../../crates/sozo/mcp/Cargo.toml ../../crates/sozo/ops/Cargo.toml ../../crates/sozo/signers/Cargo.toml ../../crates/sozo/ui/Cargo.toml ../../crates/sozo/walnut/Cargo.toml"
5851
59-
for manifest in "${SOZO_MANIFESTS[@]}"; do
52+
for manifest in $SOZO_MANIFESTS; do
6053
tmp="$(mktemp)"
61-
if ! sed '0,/^[[:space:]]*version[[:space:]]*=/s//version = "'"$CLEAN_VERSION"'"/' "$manifest" > "$tmp"; then
54+
if ! sed "0,/^[[:space:]]*version[[:space:]]*=/s//version = \"$CLEAN_VERSION\"/" "$manifest" > "$tmp"; then
6255
echo "Failed to update version in $manifest"
6356
exit 1
6457
fi

0 commit comments

Comments
 (0)