Skip to content

Commit 7b03c18

Browse files
committed
bugfix: printf was only getting the first account
1 parent 4a762d4 commit 7b03c18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/aws-account-functions

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ aws-account-cost-explorer(){
120120
# $ grep demo AWS_ACCOUNTS | aws-account-cost-explorer
121121
# #=> Opens web browser to AWS Cost Explorer with accounts selected
122122

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

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

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

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

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

0 commit comments

Comments
 (0)