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

Add support for "seed" template (#435)

The file will only be created from the template the first run. On
subsequent runs it will not be updated, even if the template has
changed.
This commit is contained in:
Erik Flodin
2025-03-23 21:32:50 +01:00
parent 4214de8d91
commit bbb58e6625
3 changed files with 51 additions and 4 deletions

8
yadm
View File

@@ -222,17 +222,17 @@ function score_file() {
# extension isn't a condition and doesn't affect the score
continue
;;
t | template | yadm)
s | seed | t | template | yadm)
if ((negate)); then
INVALID_ALT+=("$source")
else
elif [ "${label:0:1}" != "s" ] || [ ! -e "$target" ]; then
template_processor=$(choose_template_processor "$value")
if [ -n "$template_processor" ]; then
delta=0
elif [ -n "$loud" ]; then
echo "No supported template processor for template $source"
echo "No supported template processor for $source"
else
debug "No supported template processor for template $source"
debug "No supported template processor for $source"
fi
fi
;;