minor fix
authorIan Kelling <ian@iankelling.org>
Mon, 17 Jun 2024 00:11:19 +0000 (20:11 -0400)
committerIan Kelling <ian@iankelling.org>
Mon, 17 Jun 2024 00:11:19 +0000 (20:11 -0400)
brc2

diff --git a/brc2 b/brc2
index 6f3eb8be604d875b422f0aed1739b11bc4fbd3df..d46028dfddb744c985d3b90658ea963047787180 100644 (file)
--- a/brc2
+++ b/brc2
@@ -2882,8 +2882,8 @@ EOF
   tmpf=$(mktemp)
   {
     printf "%s" "Host * "
-    sed -n '/^Host /h;/^IdentityFile .*\/home/{g;s/^Host//;s/ / !/gp}' /p/c/subdir_files/.ssh/config-static | tr '\n' ' '
-    echo
+    sed -n '/^Host /h;/^IdentityFile .*\/home/{g;s/^Host//;s/ / !/gp}' /p/c/subdir_files/.ssh/config-static | tr '\n' ' ' \
+      | sed -r 's/ *$/\n/'
     echo "IdentityFile ~/.ssh/work"
   } >$tmpf
   cedit -e work-identity /p/c/subdir_files/.ssh/config-static <$tmpf