Skip to content

Commit

Permalink
Merge pull request #11 from cytopia/release-0.4
Browse files Browse the repository at this point in the history
Release 0.4
  • Loading branch information
cytopia authored Nov 1, 2023
2 parents 1ceb710 + e59ece9 commit ccdebe6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions aws-export-assume-profile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ set -o pipefail
###
###
###
APP_VERSION="v0.3"
APP_DATE="2022-10-11"
APP_VERSION="v0.4"
APP_DATE="2023-11-01"
APP_NAME="aws-export-assume-profile"


Expand Down Expand Up @@ -98,13 +98,13 @@ function extract_aws_profile {
local config="${1}"
local profile="${2}"

local regex_profile_start="^[[:space:]]*\[[[:space:]]*profile[[:space:]][[:space:]]*${profile}[[:space:]]*\]\$"
local regex_profile_start="^[[:space:]]*\[[[:space:]]*profile[[:space:]][[:space:]]*${profile}[[:space:]]*\][[:space:]]*\$"
local regex_profile_end="^[[:space:]]*\["
local start=0
local end=0

if [ "${profile}" = "default" ]; then
regex_profile_start="^[[:space:]]*\[[[:space:]]*default[[:space:]]*\]\$"
regex_profile_start="^[[:space:]]*\[[[:space:]]*default[[:space:]]*\][[:space:]]*\$"
fi

while read -r line; do
Expand Down

0 comments on commit ccdebe6

Please sign in to comment.