Bläddra i källkod

Prepare destination dir if needed

Alois Mahdal 9 år sedan
förälder
incheckning
f112d9c564
1 ändrade filer med 1 tillägg och 0 borttagningar
  1. 1
    0
      src/include/deploy.sh

+ 1
- 0
src/include/deploy.sh Visa fil

@@ -37,6 +37,7 @@ deploy_item() {
37 37
     local mode="${3:-$MKIT_DEFAULT_MODE}"
38 38
     if test -d "$src";
39 39
     then
40
+        mkdir -vp "$(dirname "$dst")"
40 41
         cp -Tvr "$src" "$dst"
41 42
         find "$dst" -type f -print0 | xargs -0 chmod -c "$mode"
42 43
     else