Skip to content

Commit

Permalink
chore: fix how check if a package is uploaded (#4302)
Browse files Browse the repository at this point in the history
  • Loading branch information
fraidev authored Dec 14, 2024
1 parent 4bffcf9 commit 4e6db82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions release-tools/publish-crates.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function check_if_crate_uploaded() {
local CRATE=$1;

# Check for whether the crate was already uploaded to determine if we're good to move forward
tail -1 "$CARGO_OUTPUT_TMP" | grep "already uploaded" > /dev/null
tail -1 "$CARGO_OUTPUT_TMP" | grep "already exists" > /dev/null

# If exit code from `grep` is 0
if [[ ${PIPESTATUS[1]} != 0 ]];
Expand Down Expand Up @@ -90,4 +90,4 @@ function main() {
echo "✅ Crates uploaded: $CRATES_UPLOADED"
}

main;
main;

0 comments on commit 4e6db82

Please sign in to comment.