diff options
Diffstat (limited to '')
-rwxr-xr-x | regress/ssh2putty.sh | 4 |
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 |