]> git.proxmox.com Git - mirror_acme.sh.git/commitdiff
Update telegram.sh
authorMike Beattie <mike@ethernal.org>
Thu, 8 Apr 2021 04:44:22 +0000 (16:44 +1200)
committerGitHub <noreply@github.com>
Thu, 8 Apr 2021 04:44:22 +0000 (16:44 +1200)
(fix shellcheck failure)

notify/telegram.sh

index c46bc1e2f28b67bc3e33bb3fe01ce4a06eb8afbf..d16f3a982ad440ee965be7cf9e1860716b66dc03 100644 (file)
@@ -38,7 +38,7 @@ telegram_send() {
 
   export _H1="Content-Type: application/json"
   _telegram_bot_url="https://api.telegram.org/bot${TELEGRAM_BOT_APITOKEN}/sendMessage"
-  if _post "$_data" "$_telegram_bot_url" > /dev/null; then
+  if _post "$_data" "$_telegram_bot_url" >/dev/null; then
     # shellcheck disable=SC2154
     _message=$(printf "%s\n" "$response" | sed -n 's/.*"ok":\([^,]*\).*/\1/p')
     if [ "$_message" = "true" ]; then