summaryrefslogtreecommitdiff
path: root/regress/sftp-glob.sh
diff options
context:
space:
mode:
authorTim Rice <tim@multitalents.net>2008-03-07 19:00:33 -0800
committerTim Rice <tim@multitalents.net>2008-03-07 19:00:33 -0800
commit68d293859ed2db128003d6631b63847acf0ea79f (patch)
tree76a75f4e097484cfc54bdb52934004376278df28 /regress/sftp-glob.sh
parenta79bb8ec5e22fb3d58b8871c4c4e93cb96a9889c (diff)
- (tim) [regress/sftp-glob.sh] Shell portability fix.
Diffstat (limited to 'regress/sftp-glob.sh')
-rw-r--r--regress/sftp-glob.sh7
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