]> git.proxmox.com Git - mirror_acme.sh.git/commitdiff
Update discord.sh
authorneil <github@neilpang.com>
Sun, 20 Mar 2022 04:43:23 +0000 (12:43 +0800)
committerGitHub <noreply@github.com>
Sun, 20 Mar 2022 04:43:23 +0000 (12:43 +0800)
notify/discord.sh

index 8df42e1593d0442c11f3fdf100d38f58ffdeff1e..58362a4e436d4b07ad267f4ed634dbef4c6d7718 100644 (file)
@@ -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