1
0
mirror of https://github.com/TheLocehiliosan/yadm synced 2025-06-13 13:03:58 +00:00

Merge branch 'rasa-dotglob'

This commit is contained in:
Ross Smith II 2018-03-07 15:52:12 -08:00
commit 96f127a859

5
yadm
View File

@ -936,6 +936,9 @@ function parse_encrypt() {
exclude_pattern="^!(.+)"
if [ -f "$YADM_ENCRYPT" ] ; then
shopt_dotglob="$(shopt -p dotglob)"
shopt -s dotglob
#; parse both included/excluded
while IFS='' read -r line || [ -n "$line" ]; do
if [[ ! $line =~ ^# && ! $line =~ ^[[:space:]]*$ ]] ; then
@ -958,6 +961,8 @@ function parse_encrypt() {
fi
done < "$YADM_ENCRYPT"
eval "$shopt_dotglob"
#; remove excludes from the includes
#(SC2068 is disabled because in this case, we desire globbing)
FINAL_INCLUDE=()