소스 검색

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