summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorMartin Pool <mbp@samba.org>2002-02-18 23:09:50 +0000
committerMartin Pool <mbp@samba.org>2002-02-18 23:09:50 +0000
commit78ece130a45c30211fc0727e4f9105c82f87bc36 (patch)
tree9a78050dfa20d7d9300c0b52588c4d16332e80f3 /testsuite
parentbd37c6663080198fc8ba60a50f3ccfe11b09fe69 (diff)
downloadrsync-78ece130a45c30211fc0727e4f9105c82f87bc36.tar.gz
Change shell syntax to try to please Solaris
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/symlink-ignore.test17
1 files changed, 14 insertions, 3 deletions
diff --git a/testsuite/symlink-ignore.test b/testsuite/symlink-ignore.test
index 41ef0eea..7bff0410 100644
--- a/testsuite/symlink-ignore.test
+++ b/testsuite/symlink-ignore.test
@@ -20,9 +20,20 @@ build_symlinks || test_fail "failed to build symlinks"
[ -f "${todir}/referent" ] || test_fail "referent was not copied"
[ -d "${todir}/from" ] && test_fail "extra level of directories"
-[ -L "${todir}/dangling" ] && test_fail "dangling symlink was copied"
-[ -L "${todir}/relative" ] && test_fail "relative symlink was copied"
-[ -L "${todir}/absolute" ] && test_fail "absolute symlink was copied"
+if [ -L "${todir}/dangling" ]
+then
+ test_fail "dangling symlink was copied"
+fi
+
+if [ -L "${todir}/relative" ]
+then
+ test_fail "relative symlink was copied"
+fi
+
+if [ -L "${todir}/absolute" ]
+then
+ test_fail "absolute symlink was copied"
+fi
exit 0
# last [] may have failed but if we get here then we've one