Support alt-links for encrypted files (#34)

This commit is contained in:
Tim Byrne 2017-01-07 16:13:47 -06:00
parent 12a5179e8a
commit 044c6e4d62
No known key found for this signature in database
GPG Key ID: 6CBE24C2FD8CF76E
1 changed files with 1 additions and 1 deletions

2
yadm
View File

@ -125,7 +125,7 @@ function alt() {
#; for every file which matches the above regex, create a symlink
last_linked=''
local IFS=$'\n'
for tracked_file in $(git ls-files | sort); do
for tracked_file in $(git ls-files | sort) $(cat "$YADM_ENCRYPT" 2>/dev/null); do
tracked_file="$YADM_WORK/$tracked_file"
#; process both the path, and it's parent directory
for alt_path in "$tracked_file" "${tracked_file%/*}"; do