summaryrefslogtreecommitdiff
blob: 70bdcef40cae3bc7342a54cd1b18b6a6c373bed5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- mkdirs.sh.orig	2007-03-19 16:28:39.000000000 +0100
+++ mkdirs.sh	2007-03-19 16:28:56.000000000 +0100
@@ -21,11 +21,11 @@
      esac
 
      if test ! -d "$pathcomp"; then
-        echo "mkdir $pathcomp" 1>&2
+        echo "mkdir -p $pathcomp" 1>&2
         case "$pathcomp" in
           [abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]: )
                 ;;               # DOSISH systems
-          * )          mkdir "$pathcomp" || errstatus=$? ;;
+          * )          mkdir -p "$pathcomp" || errstatus=$? ;;
         esac
      fi