diff options
author | tim <tim> | 2008-03-08 03:00:33 +0000 |
---|---|---|
committer | tim <tim> | 2008-03-08 03:00:33 +0000 |
commit | b90f940cdc67ec8005379fe7feaa462384b9b3e5 (patch) | |
tree | 049cc3656a0ca468dc199068b4f346ad6e64b5e0 /regress/sftp-glob.sh | |
parent | 2a080ccf9bd64faca5c351fef412cadd6597aed4 (diff) | |
download | openssh-b90f940cdc67ec8005379fe7feaa462384b9b3e5.tar.gz |
- (tim) [regress/sftp-glob.sh] Shell portability fix.
Diffstat (limited to 'regress/sftp-glob.sh')
-rw-r--r-- | regress/sftp-glob.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/regress/sftp-glob.sh b/regress/sftp-glob.sh index 62004efc..60116a74 100644 --- a/regress/sftp-glob.sh +++ b/regress/sftp-glob.sh @@ -15,9 +15,12 @@ sftp_ls() { if [ $? -ne 0 ]; then fail "$errtag failed" fi - if test "x$expected" != "x" && \ - ! fgrep "$expected" ${RESULTS} >/dev/null 2>&1 ; then + if test "x$expected" != "x" ; then + if fgrep "$expected" ${RESULTS} >/dev/null 2>&1 ; then + : + else fail "$expected missing from $errtag results" + fi fi if test "x$unexpected" != "x" && \ fgrep "$unexpected" ${RESULTS} >/dev/null 2>&1 ; then |