Compare commits
2 commits
c9656f5b17
...
755bb9572f
Author | SHA1 | Date | |
---|---|---|---|
|
755bb9572f | ||
|
cb411f4b8b |
1 changed files with 3 additions and 3 deletions
6
yadm
6
yadm
|
@ -1953,7 +1953,7 @@ function parse_encrypt() {
|
|||
continue
|
||||
fi
|
||||
if [[ $pattern =~ ^!(.*)$ ]]; then
|
||||
exclude+=(--exclude "${pattern:1}")
|
||||
exclude+=("--exclude=${pattern:1}")
|
||||
else
|
||||
include+=("$pattern")
|
||||
fi
|
||||
|
@ -1961,8 +1961,8 @@ function parse_encrypt() {
|
|||
|
||||
if [[ ${#include} -gt 0 ]]; then
|
||||
while IFS= read -r filename; do
|
||||
ENCRYPT_INCLUDE_FILES+=("$filename")
|
||||
done < <("$GIT_PROGRAM" ls-files --others "${exclude[@]}" -- "${include[@]}")
|
||||
ENCRYPT_INCLUDE_FILES+=("${filename%/}")
|
||||
done <<< "$("$GIT_PROGRAM" ls-files --others --directory "${exclude[@]}" -- "${include[@]}")"
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue