Explorar o código

Update discord.sh

neil %!s(int64=3) %!d(string=hai) anos
pai
achega
97a45e3b02
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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