Ooops
This commit is contained in:
@@ -50,7 +50,7 @@ else
|
||||
timeout=$(cat token.json | jq .expiresIn)
|
||||
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)
|
||||
curl -s --compressed \
|
||||
-H 'accept: application/json, text/plain, */*' \
|
||||
|
||||
Reference in New Issue
Block a user