Skip to content

Commit

Permalink
move code below function defs
Browse files Browse the repository at this point in the history
  • Loading branch information
marcvs committed Apr 23, 2024
1 parent e2f0bef commit bef792e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/oidc-tokensh/oidc-tokensh
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,6 @@ get_bearer_token_file_orig(){
echo "${BEARER_TOKEN_FILE}"
}

BEARER_TOKEN_FILE=$(get_bearer_token_file)
export BEARER_TOKEN_FILE

decodejwt() {
echo "$1" | cut -d. -f 2 \
| base64 -di 2>/dev/null \
Expand Down Expand Up @@ -133,6 +130,9 @@ gettoken()
fi
}

BEARER_TOKEN_FILE=$(get_bearer_token_file)
export BEARER_TOKEN_FILE

# The first time it is possible to get a cached token that is barely
# beyond the minsecs, so reduce the minimum to just 1 second
gettoken "not running command" 1
Expand Down

0 comments on commit bef792e

Please sign in to comment.