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
|
# exit
|
||||||
#fi
|
#fi
|
||||||
|
|
||||||
json="$(curl -s \
|
json="$(curl -s $( true
|
||||||
#-H "Authorization: $(cat ~/sync/traewelling.token)" \
|
#)-H "Authorization: $(cat ~/sync/traewelling.token)" $( true
|
||||||
"https://traewelling.de/api/v1/user/$user/statuses" | jq .data[0])"
|
)"https://traewelling.de/api/v1/user/$user/statuses" | jq .data[0])"
|
||||||
if [ "$(($(date -d "$(j .train.destination.arrival)" +%s) - $(date +%s) ))" -gt 0 ] ; then
|
if [ "$(($(date -d "$(j .train.destination.arrival)" +%s) - $(date +%s) ))" -gt 0 ] ; then
|
||||||
color 9
|
color 9
|
||||||
echo "> Traewelling"
|
echo "> Traewelling"
|
||||||
|
|
Loading…
Add table
Reference in a new issue