From b4c5f6b6f3707283d04631d1cb960d0a63ea32eb Mon Sep 17 00:00:00 2001 From: Hari Sekhon Date: Mon, 2 Dec 2024 04:09:16 +0700 Subject: [PATCH] updated aws_profile_generate_direnvs.sh --- aws/aws_profile_generate_direnvs.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/aws/aws_profile_generate_direnvs.sh b/aws/aws_profile_generate_direnvs.sh index 2702b9982e6..fe7ad48b0ea 100755 --- a/aws/aws_profile_generate_direnvs.sh +++ b/aws/aws_profile_generate_direnvs.sh @@ -69,6 +69,7 @@ while read -r profile; do EOF "$srcdir/../data/ini_grep_section.sh" "profile $profile" "$config" >> "$subconfig" + sed -i '' -e '${/^$/d}' "$subconfig" if ! [ -s "$subconfig" ]; then die "Failed to generate $subconfig" fi