Browse Source

Add "SRC" mode to preserve file modes from repository

Alois Mahdal 7 years ago
parent
commit
eeaeb79ec0
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      src/include/deploy.sh

+ 1
- 0
src/include/deploy.sh View File

40
                 __deploy_item "$item" "$dst${item#$src}" "$mode"
40
                 __deploy_item "$item" "$dst${item#$src}" "$mode"
41
             done
41
             done
42
     else
42
     else
43
+        test "$mode" == "SRC" && mode=$(stat -c "%a" "$src")
43
         __maybe install -DTvm "$mode" "$src" "$dst"
44
         __maybe install -DTvm "$mode" "$src" "$dst"
44
     fi
45
     fi
45
 }
46
 }