Skip to content

Commit

Permalink
rename function
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Flamm committed Feb 22, 2018
1 parent fd9b836 commit d562bb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions afpre
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ awsenv() {
env | grep -i --color=never aws
}
fetchport() {
renew() {
echo authenticating as ${NAME} for ${ACCOUNT}/${ROLE} against ${HOST}
JSON=\$(basic_auth https://${HOST}${_PATH}/${ACCOUNT}/${ROLE} ${X1XBN02R}) || error_msg "... failed!"
export AWS_ACCESS_KEY_ID=\$(json_value "\${JSON}" AccessKeyId)
Expand All @@ -196,7 +196,7 @@ fetchport() {
PROMPT_COMMAND="{
((\\\$SECONDS >= \\\$(token_renew_interval) )) && {
echo token expired - need to renew...
fetchport
renew
echo done.
}
}"
Expand Down

0 comments on commit d562bb9

Please sign in to comment.