Browse Source

Fix shfmt: align case patterns to 2-space indent

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
pull/6878/head
Adam Bodnar 1 day ago
parent
commit
def73b4da8
  1. 14
      dnsapi/dns_cpanel_uapi.sh

14
dnsapi/dns_cpanel_uapi.sh

@ -50,13 +50,13 @@ dns_cpanel_uapi_add() {
# Use configurable TTL, default 120 seconds
_ttl="${cPanel_TTL:-$(_readaccountconf_mutable cPanel_TTL)}"
case "$_ttl" in
"")
_ttl=120
;;
*[!0-9]*)
_debug "Invalid cPanel_TTL provided, falling back to default 120"
_ttl=120
;;
"")
_ttl=120
;;
*[!0-9]*)
_debug "Invalid cPanel_TTL provided, falling back to default 120"
_ttl=120
;;
esac
# Build JSON and URL-encode it for the add parameter

Loading…
Cancel
Save