diff --git a/getvods.sh b/getvods.sh index 31da19f..78612ac 100755 --- a/getvods.sh +++ b/getvods.sh @@ -48,7 +48,7 @@ get_token(){ } [ -f "${CFG_DIR}/token.json" ] && [ -f "${CFG_DIR}/expiration.txt" ] && { - [ "$(cat "${CFG_DIR}/expiration.txt")" -le "$(date +%s)" ] && get_token + [ "$(cat "${CFG_DIR}/expiration.txt")" -le "$(date +%s)" ] && get_token || : } || { get_token }