1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-08 19:34:17 +00:00

fix bug for #177

This commit is contained in:
deadc0de6
2019-07-10 10:10:44 +02:00
parent 229a7797d0
commit 5e3dce92a9
2 changed files with 8 additions and 2 deletions

View File

@@ -94,6 +94,7 @@ variables:
varx: "exttest"
dynvariables:
evar1: "echo extevar1"
theprofile: "echo {{@@ profile @@}}"
_EOF
# create the dotfile
@@ -104,6 +105,7 @@ echo "dvar4: {{@@ dvar4 @@}}" >> ${tmps}/dotfiles/abc
echo "varx: {{@@ varx @@}}" >> ${tmps}/dotfiles/abc
echo "evar1: {{@@ evar1 @@}}" >> ${tmps}/dotfiles/abc
echo "provar: {{@@ provar @@}}" >> ${tmps}/dotfiles/abc
echo "theprofile: {{@@ theprofile @@}}" >> ${tmps}/dotfiles/abc
#cat ${tmps}/dotfiles/abc
@@ -119,6 +121,7 @@ grep '^dvar4: var1 var2 var3' ${tmpd}/abc >/dev/null
grep '^varx: profvarx' ${tmpd}/abc >/dev/null
grep '^evar1: extevar1' ${tmpd}/abc >/dev/null
grep '^provar: provar' ${tmpd}/abc >/dev/null
grep '^theprofile: p1' ${tmpd}/abc >/dev/null
rm -f ${tmpd}/abc