mirror of
https://github.com/openbsd/src.git
synced 2026-06-17 23:03:29 +02:00
avoid use of paste(1); helps portable
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# $OpenBSD: agent.sh,v 1.24 2026/06/14 04:08:05 djm Exp $
|
||||
# $OpenBSD: agent.sh,v 1.25 2026/06/15 06:24:20 djm Exp $
|
||||
# Placed in the Public Domain.
|
||||
|
||||
tid="simple agent test"
|
||||
@@ -150,7 +150,7 @@ for t in ${SSH_KEYTYPES}; do
|
||||
trace "connect via agent using $t key"
|
||||
# Accept both keys and certs.
|
||||
BASE=`echo $t | cut -d '@' -f1`
|
||||
ACCEPT=`$SSH -Q key | grep "^$BASE" | paste -sd , -`
|
||||
ACCEPT=`$SSH -Q key | grep "^$BASE" | xargs echo | sed 's/ /,/g'`
|
||||
grep -vi PubkeyAcceptedAlgorithms $OBJ/sshd_proxy.bak > $OBJ/sshd_proxy
|
||||
echo "PubkeyAcceptedAlgorithms=+$ACCEPT" >> $OBJ/sshd_proxy
|
||||
grep -vi PubkeyAcceptedAlgorithms $OBJ/ssh_proxy.bak > $OBJ/ssh_proxy
|
||||
|
||||
Reference in New Issue
Block a user