summaryrefslogtreecommitdiff
path: root/regress/usr.bin/ssh
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2008-06-30 08:07:35 +0000
committerDamien Miller <djm@cvs.openbsd.org>2008-06-30 08:07:35 +0000
commita345b429a6a1815a02eff0821a0f736e765bc9a2 (patch)
treecbc717acfe198ecbff297c2e3f67d81cd44674d1 /regress/usr.bin/ssh
parent808bfab9436e1694da47036d3a5c9e938dac21d9 (diff)
shell portability: use "=" instead of "==" in test(1) expressions,
double-quote string with backslash escaped /
Diffstat (limited to 'regress/usr.bin/ssh')
-rw-r--r--regress/usr.bin/ssh/key-options.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/regress/usr.bin/ssh/key-options.sh b/regress/usr.bin/ssh/key-options.sh
index b4dd470573e..f98d78b3077 100644
--- a/regress/usr.bin/ssh/key-options.sh
+++ b/regress/usr.bin/ssh/key-options.sh
@@ -1,4 +1,4 @@
-# $OpenBSD: key-options.sh,v 1.1 2008/06/10 23:13:43 dtucker Exp $
+# $OpenBSD: key-options.sh,v 1.2 2008/06/30 08:07:34 djm Exp $
# Placed in the Public Domain.
tid="key options"
@@ -53,11 +53,11 @@ for p in 1 2; do
fail "key option proto $p failed without restriction"
fi
- sed 's/.*/from="'$f'" &/' $origkeys >$authkeys
+ sed 's/.*/from="'"$f"'" &/' $origkeys >$authkeys
from=`head -1 $authkeys | cut -f1 -d ' '`
verbose "key option proto $p $from"
r=`${SSH} -$p -q -F $OBJ/ssh_proxy somehost 'echo true'`
- if [ "$r" == "true" ]; then
+ if [ "$r" = "true" ]; then
fail "key option proto $p $from not restricted"
fi