summaryrefslogtreecommitdiffstats
path: root/regress/ssh2putty.sh
diff options
context:
space:
mode:
authorTim Rice <tim@multitalents.net>2008-03-14 02:21:06 +0100
committerTim Rice <tim@multitalents.net>2008-03-14 02:21:06 +0100
commitdce65cfb3c40ecfac855f47a20b0c931d39db3a0 (patch)
treef629801a3ea615a2eaa0ab90e2258f42c29c0353 /regress/ssh2putty.sh
parent - (tim) [scp.c] Use poll.h if available, fall back to sys/poll.h if not. Patch (diff)
downloadopenssh-dce65cfb3c40ecfac855f47a20b0c931d39db3a0.tar.xz
openssh-dce65cfb3c40ecfac855f47a20b0c931d39db3a0.zip
- (tim) [regress/sftp-cmds.sh regress/ssh2putty.sh] Shell portability fixes
from imorgan at nas.nasa.gov
Diffstat (limited to '')
-rwxr-xr-xregress/ssh2putty.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/regress/ssh2putty.sh b/regress/ssh2putty.sh
index 82dd44787..dfdeeff4a 100755
--- a/regress/ssh2putty.sh
+++ b/regress/ssh2putty.sh
@@ -10,7 +10,9 @@ PORT=$2
KEYFILE=$3
# XXX - support DSA keys too
-if ! grep -q "BEGIN RSA PRIVATE KEY" $KEYFILE ; then
+if grep "BEGIN RSA PRIVATE KEY" $KEYFILE >/dev/null 2>&1 ; then
+ :
+else
echo "Unsupported private key format"
exit 1
fi