summaryrefslogtreecommitdiff
path: root/build/mkdir.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build/mkdir.sh')
-rwxr-xr-xbuild/mkdir.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/build/mkdir.sh b/build/mkdir.sh
index 4cd33c567..b947c9260 100755
--- a/build/mkdir.sh
+++ b/build/mkdir.sh
@@ -23,6 +23,8 @@ for file in ${1+"$@"} ; do
pathcomp="$pathcomp$d"
case "$pathcomp" in
-* ) pathcomp=./$pathcomp ;;
+ ?: ) pathcomp="$pathcomp/"
+ continue ;;
esac
if test ! -d "$pathcomp"; then
echo "mkdir $pathcomp" 1>&2