From f67af1d3bdc881de85e1194609544ff0a737c50f Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Tue, 2 Aug 2022 23:24:08 +0100 Subject: [PATCH] Poll the correct URL this time ($1 = the first argument, not $0) --- .github/scripts/publish-crate.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/scripts/publish-crate.sh b/.github/scripts/publish-crate.sh index 075cb661..a1103506 100644 --- a/.github/scripts/publish-crate.sh +++ b/.github/scripts/publish-crate.sh @@ -3,7 +3,7 @@ set -e # Fail if any command fails function wait_for_release() { - local package="$0" + local package="$1" local package_with_underscores="${package/-/_}" local first_two_characters="${package_with_underscores:0:2}" @@ -23,7 +23,7 @@ function wait_for_release() { local attempts=1 while [ $attempts -le 15 ]; do - echo "Polling crates.io to see if the version has updated (attempt $attempts)" + echo "Polling crates.io with URL $url_to_poll to see if the version has updated (attempt $attempts)" if curl "$url_to_poll" | grep "$expected_version"; then return fi