This commit is contained in:
Martin Pool committed 2001-11-27 07:59:34 +00:00
1 parent 1336e41460
commit 112e731150
1 file changed
+6 -2
+6 -2
View File
@@ -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
)
}