fix outputting a null version

This commit is contained in:
Pim Kunis 2023-05-26 23:14:00 +02:00
parent bcc458d84b
commit e45133a155

4
out
View file

@ -5,6 +5,8 @@ set -e
cd "${1}"
timestamp="$(jq -n "{version:{timestamp:\"$(date +%s)\"}}")"
exec 3>&1
exec 1>&2
@ -44,4 +46,4 @@ echo "$compact_body" | jq 'del(..|nulls)' > /tmp/compact_body.json
curl -v -X POST -T /tmp/compact_body.json -H "Content-Type: application/json" "${apprise_host}/notify/${apprise_key}"
echo "{}" >&3
echo "${timestamp}" >&3