]> git.ipfire.org Git - thirdparty/dehydrated.git/commitdiff
only show order processing/pending message when waiting
authorLukas Schauer <lukas@schauer.so>
Thu, 2 Apr 2020 10:15:17 +0000 (12:15 +0200)
committerLukas Schauer <lukas@schauer.so>
Thu, 2 Apr 2020 10:15:17 +0000 (12:15 +0200)
dehydrated

index a549646ab6bba9eaa04cfa58ed16d9293121cfb3..6416b57c85a557a216817887e7696ea5f29279b3 100755 (executable)
@@ -869,13 +869,12 @@ sign_csr() {
     crt="$( printf -- '-----BEGIN CERTIFICATE-----\n%s\n-----END CERTIFICATE-----\n' "${crt64}" )"
   else
     result="$(signed_request "${finalize}" '{"csr": "'"${csr64}"'"}' | clean_json)"
-    while :
-    do
+    while :; do
       status="$(echo "${result}" | get_json_string_value status)"
-      echo "   > Order is ${status}..."
       case "${status}"
       in
         "processing" | "pending")
+          echo " + Order is ${status}..."
           sleep 2;
           ;;
         "valid")