diff --git a/ilmanifesto.sh b/ilmanifesto.sh index ad2067f..10e8d12 100644 --- a/ilmanifesto.sh +++ b/ilmanifesto.sh @@ -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, */*' \