Skip to content

Commit

Permalink
Merge pull request bash-my-aws#284 from bash-my-aws/bugfix-aws-accoun…
Browse files Browse the repository at this point in the history
…t-cost-functions

bugfix: printf was only getting the first account
  • Loading branch information
mbailey authored Jan 30, 2020
2 parents 4a762d4 + 7b03c18 commit 7788357
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/aws-account-functions
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ aws-account-cost-explorer(){
# $ grep demo AWS_ACCOUNTS | aws-account-cost-explorer
# #=> Opens web browser to AWS Cost Explorer with accounts selected

local accounts_formatted="%22$(printf $(skim-stdin "$@") | sed 's/ /%22,%22/g')%22"
local accounts_formatted="%22$(skim-stdin "$@" | sed 's/ /%22,%22/g')%22"

local cmd_open="$(hash xdg-open &> /dev/null && echo 'xdg-open' || echo 'open')"

Expand All @@ -139,7 +139,7 @@ aws-account-cost-recommendations(){
# $ grep non_prod AWS_ACCOUNTS | aws-account-each stacks FAILED
# #=> Opens web browser to AWS Cost Recommendations with accounts selected

local accounts_formatted="%22$(printf $(skim-stdin "$@") | sed 's/ /%22,%22/g')%22"
local accounts_formatted="%22$(skim-stdin "$@" | sed 's/ /%22,%22/g')%22"

local cmd_open="$(hash xdg-open &> /dev/null && echo 'xdg-open' || echo 'open')"

Expand Down

0 comments on commit 7788357

Please sign in to comment.