From 42ad49a761b3bced0d5873c231dd610eb99af2b6 Mon Sep 17 00:00:00 2001 From: Nicolas Rosset Date: Tue, 6 Sep 2022 15:03:50 +0200 Subject: [PATCH] Follow shfmt CI feedbacks --- dnsapi/dns_me.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dnsapi/dns_me.sh b/dnsapi/dns_me.sh index 14ab79a4..58c3a230 100644 --- a/dnsapi/dns_me.sh +++ b/dnsapi/dns_me.sh @@ -134,7 +134,11 @@ _me_rest() { data="$3" _debug "$ep" - cdate=$(LC_TIME=en_US.utf8; LANG=C date -u +"%a, %d %b %Y %T %Z") + cdate=$( + LC_TIME=en_US.utf8 + LANG=C date -u +"%a, %d %b %Y %T %Z" + ) + hmac=$(printf "%s" "$cdate" | _hmac sha1 "$(printf "%s" "$ME_Secret" | _hex_dump | tr -d " ")" hex) export _H1="x-dnsme-apiKey: $ME_Key"