1
0
Fork 0
mirror of synced 2024-11-05 01:08:59 -05:00

feat: Add support for env vars in templates

This commit is contained in:
Ross Smith II 2021-06-06 10:37:14 -07:00
parent 5adb486727
commit 73af421667
No known key found for this signature in database
GPG key ID: A05F962FB6A849D2

3
yadm
View file

@ -409,6 +409,9 @@ function replace_vars() {
for (label in c) {
gsub(("{{" blank "*yadm\\." label blank "*}}"), c[label])
}
for (label in ENVIRON) {
gsub(("{{" blank "*env\\." label blank "*}}"), ENVIRON[label])
}
}
function conditions() {
pattern = ifs blank "+("