From 04dd36bf22ecd5b7cb9e1fecfc48e26b94b36a4a Mon Sep 17 00:00:00 2001 From: pie Date: Thu, 7 Apr 2022 14:50:14 +0200 Subject: [PATCH] Ooops --- ilmanifesto.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, */*' \