Skip to content

Commit

Permalink
#37: fix RENEW_INT handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Flamm committed Jun 19, 2018
1 parent 4eddd3a commit 925ebf2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions afpre
Original file line number Diff line number Diff line change
Expand Up @@ -194,11 +194,11 @@ renew() {
}
condrenew() {
((\$SECONDS >= \$(token_renew_interval) )) && {
echo token expired - need to renew...
(( \$SECONDS >= \$(token_renew_interval) )) || (( \${AWS_VALID_SECONDS} == 0 )) && {
echo token expired - need to renew...
renew
echo done.
}
echo done.
}
}
PROMPT_COMMAND=condrenew
Expand Down

0 comments on commit 925ebf2

Please sign in to comment.