mirror of
https://github.com/vale981/dotfiles
synced 2025-03-04 17:11:39 -05:00
copy permissions from templates
This commit is contained in:
parent
6805d4ad1a
commit
9aff7f7fba
1 changed files with 1 additions and 0 deletions
|
@ -138,6 +138,7 @@ function linkall {
|
|||
if [[ ${f: -9} == ".template" ]]; then
|
||||
mkdir -p $DOTFILES_TMP/$DIR
|
||||
cat $CDIR/$f | mo > $DOTFILES_TMP/$DIR/${f:0:-9}
|
||||
chmod --reference=$CDIR/$f $DOTFILES_TMP/$DIR/${f:0:-9}
|
||||
CDIR=$DOTFILES_TMP/$DIR/
|
||||
f=${f:0:-9}
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue