]> andersk Git - openssh.git/blobdiff - regress/ssh2putty.sh
- (tim) [regress/sftp-cmds.sh regress/ssh2putty.sh] Shell portability fixes
[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 1.149058 seconds and 4 git commands to generate.