mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-09 08:54:16 +00:00
add func_file and filter_file for the config (for #210)
This commit is contained in:
@@ -77,6 +77,8 @@ profiles:
|
||||
p1:
|
||||
dotfiles:
|
||||
- f_abc
|
||||
variables:
|
||||
func: "{{@@ func1(False) @@}}"
|
||||
_EOF
|
||||
#cat ${cfg}
|
||||
|
||||
@@ -132,6 +134,8 @@ echo "{%@@ if func3("whatever") == 42 @@%}" >> ${tmps}/dotfiles/abc
|
||||
echo "externalok" >> ${tmps}/dotfiles/abc
|
||||
echo "{%@@ endif @@%}" >> ${tmps}/dotfiles/abc
|
||||
|
||||
echo "{{@@ func @@}}added" >> ${tmps}/dotfiles/abc
|
||||
|
||||
# install
|
||||
cd ${ddpath} | ${bin} install -f -c ${cfg} -p p1 -V
|
||||
|
||||
@@ -144,6 +148,7 @@ grep '^externalok$' ${tmpd}/abc >/dev/null
|
||||
set +e
|
||||
grep '^nope$' ${tmpd}/abc >/dev/null && exit 1
|
||||
set -e
|
||||
grep '^Falseadded$' ${tmpd}/abc >/dev/null
|
||||
|
||||
## CLEANING
|
||||
rm -rf ${tmps} ${tmpd} ${func_file} ${func_file2} ${func_file3}
|
||||
|
||||
Reference in New Issue
Block a user