shell: test -a|o is not POSIX (#250)
[rsync.git] / testsuite / rsync.fns
index 1e2b399f0cef21191b6ff297f09690578fda5fbd..2ab97b69cd54c09041a259cb8928148a7eba8ecf 100644 (file)
@@ -65,7 +65,7 @@ set_cp_destdir() {
 # even if the copy rounded microsecond times on the destination file.
 cp_touch() {
     cp_p "${@}"
-    if test $# -gt 2 -o -d "$2"; then
+    if test $# -gt 2 || test -d "$2"; then
        set_cp_destdir "${@}" # sets destdir var
        while test $# -gt 1; do
            destname="$destdir/`basename $1`"