Skip to content

Commit d8a4e47

Browse files
author
Grigory Starinkin
committed
disable "$response is referenced but not assigned" warning
the variable is assigned by the `_post` call
1 parent bc92094 commit d8a4e47

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

notify/slack_app.sh

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ slack_app_send() {
3232

3333
SLACK_APP_API_URL="https://slack.com/api/chat.postMessage"
3434
if _post "$_data" "$SLACK_APP_API_URL" "" "POST" "application/json; charset=utf-8"; then
35+
# shellcheck disable=SC2154
3536
SLACK_APP_RESULT_OK=$(echo "$response" | _egrep_o 'ok" *: *true')
3637
if [ "$?" = "0" ] && [ "$SLACK_APP_RESULT_OK" ]; then
3738
_info "slack send success."

0 commit comments

Comments
 (0)