From: Ian Kelling Date: Mon, 17 Jun 2024 00:11:19 +0000 (-0400) Subject: minor fix X-Git-Url: https://iankelling.org/git/?a=commitdiff_plain;ds=sidebyside;h=29e7420d5906c1e2068bb7546f5d4148e34e2423;p=distro-setup minor fix --- 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