This commit is contained in:
pie
2022-04-07 14:50:14 +02:00
parent eaf64cb561
commit 04dd36bf22

View File

@@ -50,7 +50,7 @@ else
timeout=$(cat token.json | jq .expiresIn) timeout=$(cat token.json | jq .expiresIn)
let timepassed=`date +%s`-`stat -c %Y token.json` let timepassed=`date +%s`-`stat -c %Y token.json`
if [[ $timepassed > $timeout ]] ; then if [[ $timepassed -gt $timeout ]] ; then
rtoken=$(cat token.json | jq -r .refreshToken) rtoken=$(cat token.json | jq -r .refreshToken)
curl -s --compressed \ curl -s --compressed \
-H 'accept: application/json, text/plain, */*' \ -H 'accept: application/json, text/plain, */*' \