1
0
Fork 0
mirror of https://github.com/librespot-org/librespot.git synced 2025-10-02 17:29:22 +02:00

refactor: remove remoteWait function and related call from publish.sh

"cargo publish" uses its own timeout now.
This commit is contained in:
Roderick van Domburg 2025-08-24 17:03:30 +02:00
parent 09dae0477f
commit b8f7283807
No known key found for this signature in database
GPG key ID: 607FA06CB5236AE0

View file

@ -79,20 +79,6 @@ function get_crate_name {
awk -v FS="name = " 'NF>1{print $2; exit}' Cargo.toml
}
function remoteWait() {
IFS=:
secs=${1}
crate_name=${2}
while [ $secs -gt 0 ]
do
sleep 1 &
printf "\rSleeping to allow %s to propagate on crates.io servers. Continuing in %2d second(s)." ${crate_name} ${secs}
secs=$(( $secs - 1 ))
wait
done
echo
}
function publishCrates {
for CRATE in "${crates[@]}"
do
@ -123,7 +109,6 @@ function publishCrates {
fi
fi
echo "Successfully published $crate_name to crates.io"
remoteWait 30 $crate_name
done
}