mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-07-12 16:12:45 +02:00
fixed zsh compatibility
This commit is contained in:
+5
-5
@@ -212,7 +212,7 @@ jsonsh() {
|
|||||||
parse () {
|
parse () {
|
||||||
read -r token
|
read -r token
|
||||||
parse_value
|
parse_value
|
||||||
read -r token
|
read -r token || true
|
||||||
case "$token" in
|
case "$token" in
|
||||||
'') ;;
|
'') ;;
|
||||||
*) throw "EXPECTED EOF GOT $token" ;;
|
*) throw "EXPECTED EOF GOT $token" ;;
|
||||||
@@ -1030,18 +1030,18 @@ sign_csr() {
|
|||||||
else
|
else
|
||||||
result="$(signed_request "${finalize}" '{"csr": "'"${csr64}"'"}' | jsonsh)"
|
result="$(signed_request "${finalize}" '{"csr": "'"${csr64}"'"}' | jsonsh)"
|
||||||
while :; do
|
while :; do
|
||||||
status="$(echo "${result}" | get_json_string_value status)"
|
orderstatus="$(echo "${result}" | get_json_string_value status)"
|
||||||
case "${status}"
|
case "${orderstatus}"
|
||||||
in
|
in
|
||||||
"processing" | "pending")
|
"processing" | "pending")
|
||||||
echo " + Order is ${status}..."
|
echo " + Order is ${orderstatus}..."
|
||||||
sleep 2;
|
sleep 2;
|
||||||
;;
|
;;
|
||||||
"valid")
|
"valid")
|
||||||
break;
|
break;
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
_exiterr "Order in status ${status}"
|
_exiterr "Order in status ${orderstatus}"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
result="$(signed_request "${order_location}" "" | jsonsh)"
|
result="$(signed_request "${order_location}" "" | jsonsh)"
|
||||||
|
|||||||
Reference in New Issue
Block a user