fixed wrong check that resulted in unnecesary access token retrievals
This commit is contained in:
parent
9becdcc826
commit
d28fa521a9
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue