mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-10-24 22:58:16 -04:00
Fix sh
This commit is contained in:
1 parent
1336e41460
commit
112e731150
1 file changed
+6
-2
+6
-2
@@ -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
|
||||
)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user