1
0
mirror of https://github.com/TheLocehiliosan/yadm synced 2026-03-02 03:49:29 +00:00

Process .yadm/encrypt in sorted order

This commit is contained in:
Tim Byrne
2019-03-24 17:05:11 -05:00
parent 2848ca2d1d
commit 58edf313aa
2 changed files with 10 additions and 1 deletions

6
yadm
View File

@@ -956,7 +956,11 @@ function parse_encrypt() {
done
[ -n "$skip" ] || FINAL_INCLUDE+=("$included")
done
ENCRYPT_INCLUDE_FILES=("${FINAL_INCLUDE[@]}")
#; sort the encrypted files
#shellcheck disable=SC2207
IFS=$'\n' ENCRYPT_INCLUDE_FILES=($(sort <<<"${FINAL_INCLUDE[*]}"))
unset IFS
fi
}