diff options
Diffstat (limited to 'build')
-rwxr-xr-x | build/mkdir.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/build/mkdir.sh b/build/mkdir.sh index 13683ffcab..0c6a9ef5a8 100755 --- a/build/mkdir.sh +++ b/build/mkdir.sh @@ -38,7 +38,13 @@ for file in ${1+"$@"} ; do continue ;; esac if test ! -d "$pathcomp"; then - mkdir "$pathcomp" || errstatus=$? + thiserrstatus=0 + mkdir "$pathcomp" || thiserrstatus=$? + # ignore errors due to races if a parallel mkdir.sh already + # created the dir + if test $thiserrstatus != 0 && test ! -d "$pathcomp" ; then + errstatus=$thiserrstatus + fi fi pathcomp="$pathcomp/" done |