work around echo -n / sed behaviour in tests

This commit is contained in:
Damien Miller 2015-08-06 11:43:42 +10:00
parent d85dad8177
commit 2651e34cd1
1 changed files with 2 additions and 2 deletions

View File

@ -10,8 +10,8 @@ cp $OBJ/ssh_proxy $OBJ/ssh_proxy_bak
PLAIN_TYPES=`$SSH -Q key-plain | sed 's/^ssh-dss/ssh-dsa/;s/^ssh-//'` PLAIN_TYPES=`$SSH -Q key-plain | sed 's/^ssh-dss/ssh-dsa/;s/^ssh-//'`
kname() { kname() {
echo -n $1 | sed 's/^dsa/ssh-dss/;s/^rsa/ssh-rsa/;s/^ed/ssh-ed/' n=`echo "$1" | sed 's/^dsa/ssh-dss/;s/^rsa/ssh-rsa/;s/^ed/ssh-ed/'`
echo "*,ssh-rsa*,ssh-ed25519*" echo "$n*,ssh-rsa*,ssh-ed25519*"
} }
# Create a CA key # Create a CA key