Skip to content

Commit

Permalink
Merge pull request #24 from Jackman3005/master
Browse files Browse the repository at this point in the history
Allow printf to be more flexible with slack message content.
  • Loading branch information
norman-abramovitz authored Feb 9, 2017
2 parents 0cf7971 + ddb6836 commit dd2ae7b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions out
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ fi
if [[ "$always_notify" == "true" || -n "$TEXT_FILE_CONTENT" || -z "$text_file" ]]
then
TEXT_FILE_CONTENT="${TEXT_FILE_CONTENT:-_(no notification provided)_}"

text="$(eval printf ${text} )"
text="$(eval printf "%b" ${text} )"
[[ -z "${text}" ]] && text="_(missing notification text)_"
text="$(echo "${text}" | jq -R -s .)"

Expand Down

0 comments on commit dd2ae7b

Please sign in to comment.