Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1336e41
)
Fix sh
author
Martin Pool
<mbp@samba.org>
Tue, 27 Nov 2001 07:59:34 +0000
(07:59 +0000)
committer
Martin Pool
<mbp@samba.org>
Tue, 27 Nov 2001 07:59:34 +0000
(07:59 +0000)
testsuite/rsync.fns
patch
|
blob
|
blame
|
history
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
- [ -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
)
}