瀏覽代碼

Update discord.sh

neil 3 年之前
父節點
當前提交
97a45e3b02
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      notify/discord.sh

+ 1 - 1
notify/discord.sh

@@ -46,7 +46,7 @@ discord_send() {
 
   if _post "$_data" "$DISCORD_WEBHOOK_URL?wait=true"; then
     # shellcheck disable=SC2154
-    if [ -n "$response" ]; then
+    if [ "$response" ]; then
       _info "discord send success."
       return 0
     fi