|
@ -51,7 +51,7 @@ then |
|
|
|
|
|
|
|
|
text="$(eval printf ${text} )" |
|
|
text="$(eval printf ${text} )" |
|
|
[[ -z "${text}" ]] && text="_(missing notification text)_" |
|
|
[[ -z "${text}" ]] && text="_(missing notification text)_" |
|
|
text="$(echo "${text}" | jq -R -s .)" |
|
|
|
|
|
|
|
|
text="$(echo -n "${text}" | jq -R -s .)" |
|
|
|
|
|
|
|
|
[[ "${token}" != "null" ]] && username="$(eval "printf ${token}" | jq -R -s .)" |
|
|
[[ "${token}" != "null" ]] && username="$(eval "printf ${token}" | jq -R -s .)" |
|
|
[[ "${room_id}" != "null" ]] && room_id="$(eval "printf ${room_id}" | jq -R -s .)" |
|
|
[[ "${room_id}" != "null" ]] && room_id="$(eval "printf ${room_id}" | jq -R -s .)" |
|
@ -74,13 +74,13 @@ EOF |
|
|
} |
|
|
} |
|
|
EOF |
|
|
EOF |
|
|
)" |
|
|
)" |
|
|
body=$(echo $body | jq -c ".build=$builddata") |
|
|
|
|
|
|
|
|
body=$(echo -n $body | jq -c ".build=$builddata") |
|
|
if [ -n "$DATA_FILE_CONTENT" ]; then |
|
|
if [ -n "$DATA_FILE_CONTENT" ]; then |
|
|
body=$(echo $body | jq -c ".data=$DATA_FILE_CONTENT") |
|
|
|
|
|
|
|
|
body=$(echo -n $body | jq -c ".data=$DATA_FILE_CONTENT") |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
compact_body="$(echo "${body}" | jq -c '.')" |
|
|
|
|
|
|
|
|
compact_body="$(echo -n "${body}" | jq -c '.')" |
|
|
|
|
|
|
|
|
if [[ "$silent" == "true" ]] |
|
|
if [[ "$silent" == "true" ]] |
|
|
then |
|
|
then |
|
|