traewelling: fix a newline problem

This commit is contained in:
Daniella / Tove 2024-10-28 21:56:26 +01:00
parent 136a01ab8d
commit 38c61b0740
Signed by: TudbuT
GPG key ID: B3CF345217F202D3

View file

@ -19,9 +19,9 @@ pkgs.writeShellScriptBin "traewelling" ''
# exit
#fi
json="$(curl -s \
#-H "Authorization: $(cat ~/sync/traewelling.token)" \
"https://traewelling.de/api/v1/user/$user/statuses" | jq .data[0])"
json="$(curl -s $( true
#)-H "Authorization: $(cat ~/sync/traewelling.token)" $( true
)"https://traewelling.de/api/v1/user/$user/statuses" | jq .data[0])"
if [ "$(($(date -d "$(j .train.destination.arrival)" +%s) - $(date +%s) ))" -gt 0 ] ; then
color 9
echo "> Traewelling"