浏览代码

Update telegram.sh

(fix shellcheck failure)
Mike Beattie 4 年之前
父节点
当前提交
fb079f9e50
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      notify/telegram.sh

+ 1 - 1
notify/telegram.sh

@@ -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