Prechádzať zdrojové kódy

Small tweak to console output during publishing.

Sasha Hilton 4 rokov pred
rodič
commit
22ca944c77
1 zmenil súbory, kde vykonal 3 pridanie a 2 odobranie
  1. 3 2
      publish.sh

+ 3 - 2
publish.sh

@@ -43,10 +43,11 @@ function get_crate_name {
 function remoteWait() {
 function remoteWait() {
   IFS=:
   IFS=:
   secs=${1}
   secs=${1}
+  crate_name=${2}
   while [ $secs -gt 0 ]
   while [ $secs -gt 0 ]
   do
   do
     sleep 1 &
     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 ))
     secs=$(( $secs - 1 ))
     wait
     wait
   done
   done
@@ -75,7 +76,7 @@ function publishCrates {
       cargo publish
       cargo publish
     fi
     fi
     echo "Successfully published $crate_name to crates.io"
     echo "Successfully published $crate_name to crates.io"
-    remoteWait 30
+    remoteWait 30 crate_name
   done
   done
 }
 }