1
0
Fork 0
mirror of synced 2024-12-04 14:45:36 -05:00

Compare commits

..

2 commits

Author SHA1 Message Date
Erik Flodin
755bb9572f
Run tests directly on github runner instead of in the docker image
As this makes it possible to run the tests on different systems. Initially
ubuntu (20.04 and 24.04) and macOs (13 and 15).
2024-11-25 21:57:21 +01:00
Erik Flodin
cb411f4b8b
Use git ls-files to list files to encrypt
By using git ls-files instead of bash we can support ** also on macOS where the
included bash version (3) doesn't support globstar.
2024-11-25 21:57:04 +01:00

6
yadm
View file

@ -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
}