From 29e7420d5906c1e2068bb7546f5d4148e34e2423 Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Sun, 16 Jun 2024 20:11:19 -0400 Subject: [PATCH] minor fix --- brc2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/brc2 b/brc2 index 6f3eb8b..d46028d 100644 --- 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 -- 2.30.2