Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Call this 2.4.7pre4
[rsync/rsync.git]
/
testsuite
/
rsync.fns
diff --git
a/testsuite/rsync.fns
b/testsuite/rsync.fns
index
b34faa4
..
8f8e7d3
100644
(file)
--- a/
testsuite/rsync.fns
+++ b/
testsuite/rsync.fns
@@
-112,8
+112,12
@@
makepath () {
# This will break if $1 contains a space.
for c in `echo $p | tr '/' ' '`
do
# This will break if $1 contains a space.
for c in `echo $p | tr '/' ' '`
do
- [ -d "$c" ] || mkdir "$c" || { echo "failed to create $c" >&2; return $? }
- cd "$c" || return $?
+ if [ -d "$c" ] || mkdir "$c"
+ then
+ cd "$c" || return $?
+ else
+ echo "failed to create $c" >&2; return $?
+ fi
done
)
}
done
)
}