1
0
Fork 0
mirror of synced 2024-12-13 02:45:45 -05:00

Don't glob into parent dirs

This commit is contained in:
Ross Smith II 2019-11-11 20:30:50 -08:00 committed by Tim Byrne
parent ab578c9502
commit 8633083716
No known key found for this signature in database
GPG key ID: 14DB4FC2465A4B12

4
yadm
View file

@ -1045,12 +1045,12 @@ function perms() {
# include all .ssh files (unless disabled) # include all .ssh files (unless disabled)
if [[ $(config --bool yadm.ssh-perms) != "false" ]] ; then if [[ $(config --bool yadm.ssh-perms) != "false" ]] ; then
GLOBS+=(".ssh" ".ssh/*" ".ssh/.*") GLOBS+=(".ssh" ".ssh/*" ".ssh/.[!.]*")
fi fi
# include all gpg files (unless disabled) # include all gpg files (unless disabled)
if [[ $(config --bool yadm.gpg-perms) != "false" ]] ; then if [[ $(config --bool yadm.gpg-perms) != "false" ]] ; then
GLOBS+=(".gnupg" ".gnupg/*" ".gnupg/.*") GLOBS+=(".gnupg" ".gnupg/*" ".gnupg/.[!.]*")
fi fi
# include any files we encrypt # include any files we encrypt