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

Update regex to match horizontal white space only

This commit is contained in:
Tim Byrne
2020-12-06 22:36:12 -06:00
parent 4b5f16d73a
commit 80d8949850

2
yadm
View File

@@ -1858,7 +1858,7 @@ function parse_encrypt() {
if [ -f "$YADM_ENCRYPT" ] ; then
# parse both included/excluded
while IFS='' read -r line || [ -n "$line" ]; do
if [[ ! $line =~ ^# && ! $line =~ ^[[:space:]]*$ ]] ; then
if [[ ! $line =~ ^# && ! $line =~ ^[[:blank:]]*$ ]] ; then
local IFS=$'\n'
for pattern in $line; do
if [[ "$pattern" =~ $exclude_pattern ]]; then