fix outputting a null version
This commit is contained in:
parent
bcc458d84b
commit
e45133a155
1 changed files with 3 additions and 1 deletions
4
out
4
out
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue