mkdir.sh (apr-1.6.5.tar.bz2) | : | mkdir.sh (apr-1.7.0.tar.bz2) | ||
---|---|---|---|---|
skipping to change at line 29 | skipping to change at line 29 | |||
shift | shift | |||
pathcomp= | pathcomp= | |||
for d in ${1+"$@"}; do | for d in ${1+"$@"}; do | |||
pathcomp="$pathcomp$d" | pathcomp="$pathcomp$d" | |||
case "$pathcomp" in | case "$pathcomp" in | |||
-* ) pathcomp=./$pathcomp ;; | -* ) pathcomp=./$pathcomp ;; | |||
?: ) pathcomp="$pathcomp/" | ?: ) pathcomp="$pathcomp/" | |||
continue ;; | continue ;; | |||
esac | esac | |||
if test ! -d "$pathcomp"; then | if test ! -d "$pathcomp"; then | |||
echo "mkdir $pathcomp" 1>&2 | ||||
thiserrstatus=0 | thiserrstatus=0 | |||
mkdir "$pathcomp" || thiserrstatus=$? | mkdir "$pathcomp" || thiserrstatus=$? | |||
# ignore errors due to races if a parallel mkdir.sh already | # ignore errors due to races if a parallel mkdir.sh already | |||
# created the dir | # created the dir | |||
if test $thiserrstatus != 0 && test ! -d "$pathcomp" ; then | if test $thiserrstatus != 0 && test ! -d "$pathcomp" ; then | |||
errstatus=$thiserrstatus | errstatus=$thiserrstatus | |||
fi | fi | |||
fi | fi | |||
pathcomp="$pathcomp/" | pathcomp="$pathcomp/" | |||
done | done | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 0 lines changed or added |