traewelling: fix a newline problem
This commit is contained in:
parent
136a01ab8d
commit
38c61b0740
1 changed files with 3 additions and 3 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue