neil %!s(int64=2) %!d(string=hai) anos
pai
achega
e15513bfdd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      notify/mattermost.sh

+ 1 - 1
notify/mattermost.sh

@@ -38,7 +38,7 @@ mattermost_send() {
   _data="$_data\"message\": \"$_content\"}"
 
   export _H1="Authorization: Bearer $MATTERMOST_BOT_TOKEN"
-
+  response=""
   if _post "$_data" "$MATTERMOST_API_URL" "" "POST" "application/json; charset=utf-8"; then
     MATTERMOST_RESULT_OK=$(echo "$response" | _egrep_o 'create_at')
     if [ "$?" = "0" ] && [ "$MATTERMOST_RESULT_OK" ]; then