Przeglądaj źródła

Small tweak to console output during publishing.

Sasha Hilton 3 lat temu
rodzic
commit
22ca944c77
1 zmienionych plików z 3 dodań i 2 usunięć
  1. 3 2
      publish.sh

+ 3 - 2
publish.sh

@@ -43,10 +43,11 @@ function get_crate_name {
 function remoteWait() {
   IFS=:
   secs=${1}
+  crate_name=${2}
   while [ $secs -gt 0 ]
   do
     sleep 1 &
-    printf "\rSleeping to allow packages to propagate on crates.io servers. Continuing in %2d second(s)." ${secs}
+    printf "\rSleeping to allow %s to propagate on crates.io servers. Continuing in %2d second(s)." ${crate_name} ${secs}
     secs=$(( $secs - 1 ))
     wait
   done
@@ -75,7 +76,7 @@ function publishCrates {
       cargo publish
     fi
     echo "Successfully published $crate_name to crates.io"
-    remoteWait 30
+    remoteWait 30 crate_name
   done
 }