diff options
author | Tim Rice <tim@multitalents.net> | 2008-03-13 18:21:06 -0700 |
---|---|---|
committer | Tim Rice <tim@multitalents.net> | 2008-03-13 18:21:06 -0700 |
commit | dce65cfb3c40ecfac855f47a20b0c931d39db3a0 (patch) | |
tree | f629801a3ea615a2eaa0ab90e2258f42c29c0353 /regress/ssh2putty.sh | |
parent | 3eb144911c149c293bf681bec7da649a8d33d420 (diff) |
- (tim) [regress/sftp-cmds.sh regress/ssh2putty.sh] Shell portability fixes
from imorgan at nas.nasa.gov
Diffstat (limited to 'regress/ssh2putty.sh')
-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 | |||
10 | KEYFILE=$3 | 10 | KEYFILE=$3 |
11 | 11 | ||
12 | # XXX - support DSA keys too | 12 | # XXX - support DSA keys too |
13 | if ! grep -q "BEGIN RSA PRIVATE KEY" $KEYFILE ; then | 13 | if grep "BEGIN RSA PRIVATE KEY" $KEYFILE >/dev/null 2>&1 ; then |
14 | : | ||
15 | else | ||
14 | echo "Unsupported private key format" | 16 | echo "Unsupported private key format" |
15 | exit 1 | 17 | exit 1 |
16 | fi | 18 | fi |