1
0
Fork 0
mirror of synced 2024-12-06 07:35:36 -05:00

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

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