From 86330837166028e5b812595079a80a8b0537c09e Mon Sep 17 00:00:00 2001 From: Ross Smith II Date: Mon, 11 Nov 2019 20:30:50 -0800 Subject: [PATCH] Don't glob into parent dirs --- yadm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yadm b/yadm index 307c400..7df89cf 100755 --- a/yadm +++ b/yadm @@ -1045,12 +1045,12 @@ function perms() { # include all .ssh files (unless disabled) if [[ $(config --bool yadm.ssh-perms) != "false" ]] ; then - GLOBS+=(".ssh" ".ssh/*" ".ssh/.*") + GLOBS+=(".ssh" ".ssh/*" ".ssh/.[!.]*") fi # include all gpg files (unless disabled) if [[ $(config --bool yadm.gpg-perms) != "false" ]] ; then - GLOBS+=(".gnupg" ".gnupg/*" ".gnupg/.*") + GLOBS+=(".gnupg" ".gnupg/*" ".gnupg/.[!.]*") fi # include any files we encrypt