Ignore empty lines/whitespace lines in .yadm/encrypt (#40)
This commit is contained in:
parent
ef796bc2c1
commit
eba6557ae8
1 changed files with 1 additions and 1 deletions
2
yadm
2
yadm
|
@ -256,7 +256,7 @@ function encrypt() {
|
|||
#; build a list of globs from YADM_ENCRYPT
|
||||
GLOBS=()
|
||||
while IFS='' read -r glob || [ -n "$glob" ]; do
|
||||
if [[ ! $glob =~ ^# ]] ; then
|
||||
if [[ ! $glob =~ ^# && ! $glob =~ ^[[:space:]]*$ ]] ; then
|
||||
GLOBS=("${GLOBS[@]}" $(eval "$LS_PROGRAM" "$glob" 2>/dev/null))
|
||||
fi
|
||||
done < "$YADM_ENCRYPT"
|
||||
|
|
Loading…
Reference in a new issue