disable "$response is referenced but not assigned" warning

the variable is assigned by the `_post` call
This commit is contained in:
Grigory Starinkin 2022-07-18 17:20:25 +01:00
parent bc920949cb
commit d8a4e47a13
No known key found for this signature in database
GPG Key ID: 6A32D1F8AB4C166A
1 changed files with 1 additions and 0 deletions

View File

@ -32,6 +32,7 @@ slack_app_send() {
SLACK_APP_API_URL="https://slack.com/api/chat.postMessage"
if _post "$_data" "$SLACK_APP_API_URL" "" "POST" "application/json; charset=utf-8"; then
# shellcheck disable=SC2154
SLACK_APP_RESULT_OK=$(echo "$response" | _egrep_o 'ok" *: *true')
if [ "$?" = "0" ] && [ "$SLACK_APP_RESULT_OK" ]; then
_info "slack send success."