]> andersk Git - openssh.git/blobdiff - regress/ssh2putty.sh
- djm@cvs.openbsd.org 2008/06/30 08:07:34
[openssh.git] / regress / ssh2putty.sh
index 82dd4478739d5acb7ce1631872521fd0aa4f69d0..dfdeeff4a0baf1bebf09928bdb15cd560a473cbf 100755 (executable)
@@ -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
This page took 0.032939 seconds and 4 git commands to generate.