copy permissions from templates

This commit is contained in:
Valentin Boettcher 2021-02-19 14:55:00 +01:00
parent 6805d4ad1a
commit 9aff7f7fba

View file

@ -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