diff --git a/ci/publish.sh b/ci/publish.sh index 966678273..cf898ba49 100755 --- a/ci/publish.sh +++ b/ci/publish.sh @@ -2,10 +2,11 @@ set -euo pipefail IFS=$'\n\t' +cd "$(dirname "$0")"/.. # A list of paths to the crate to be published. # It will be published in the order listed. -MEMBERS=( +members=( "futures-core" "futures-io" "futures-sink" @@ -18,16 +19,10 @@ MEMBERS=( "futures-test" ) -cd "$(cd "$(dirname "$0")" && pwd)"/.. - -set -x - -for i in "${!MEMBERS[@]}"; do +for member in "${members[@]}"; do ( - cd "${MEMBERS[${i}]}" + set -x + cd "${member}" cargo +stable publish ) - if [[ $((i + 1)) != "${#MEMBERS[@]}" ]]; then - sleep 45 - fi done