Skip to content

Commit c588672

Browse files
authored
fix: add conditional check for cert-tools filter (#128)
1 parent 1b7c81e commit c588672

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

release/create-release-candidate-branch.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,10 @@ rc_branch_operator() (
7171
# cargo-edit will also update the version in all workspaces but cert-tools/
7272
# Cargo.toml should be managed separately. Intentionally revert this change
7373
# and also correct Cargo.lock using cargo check.
74-
git restore rust/cert-tools/Cargo.toml
75-
cargo check
74+
if [ -f rust/cert-tools/Cargo.toml ]; then
75+
git restore rust/cert-tools/Cargo.toml
76+
cargo check
77+
fi
7678

7779
git add Cargo.toml Cargo.lock
7880

0 commit comments

Comments
 (0)