Explorar o código

Exclude files listed in yadm/encrypt when decrypt is called

Previously this would only happen when encrypting.
Tim Byrne %!s(int64=5) %!d(string=hai) anos
pai
achega
69cde7f83c
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      yadm

+ 2 - 0
yadm

@@ -860,6 +860,8 @@ function decrypt() {
   require_gpg
   require_archive
 
+  [ -f "$YADM_ENCRYPT" ] && exclude_encrypted
+
   if [ "$DO_LIST" = "YES" ] ; then
     tar_option="t"
   else