From 7b03c187c8463e301a91e168d80680264b6cb642 Mon Sep 17 00:00:00 2001 From: Mike Bailey Date: Thu, 30 Jan 2020 12:38:32 +1100 Subject: [PATCH] bugfix: printf was only getting the first account --- lib/aws-account-functions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/aws-account-functions b/lib/aws-account-functions index ec432d38..5af1c9fe 100644 --- a/lib/aws-account-functions +++ b/lib/aws-account-functions @@ -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')" @@ -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')"