diff --git a/getssl b/getssl index 763677f..b6e74a5 100755 --- a/getssl +++ b/getssl @@ -2186,7 +2186,7 @@ if [[ $API -eq 2 ]]; then for d in $alldomains; do dstring="${dstring}{\"type\":\"dns\",\"value\":\"$d\"}," done - dstring="${dstring::${#dstring}-1}]" + dstring="${dstring%?}]" # request NewOrder currently seems to ignore the dates .... # dstring="${dstring},\"notBefore\": \"$(date -d "-1 hour" --utc +%FT%TZ)\"" # dstring="${dstring},\"notAfter\": \"$(date -d "2 days" --utc +%FT%TZ)\""