1
0
This commit is contained in:
Jeff Lance 2024-03-04 16:10:50 +01:00
parent 9968e850c3
commit ac364679ca
2 changed files with 2 additions and 6 deletions

View File

@ -4,9 +4,6 @@ email = {{ promptString "Git main email address " "" | quote }}
{{- with promptInt "How many mbsync accounts would you generate " 0 -}}{{- $count := . | int }}
{{- if gt $count 0 -}}
[[data.mbsync]]
activate = true
{{- range $i, $e := until $count }}
[[data.mbsync]]
name = {{ promptString "MbSync account name " | quote }}
@ -18,7 +15,6 @@ host = {{ promptString "MbSync account host " | quote }}
{{ else }}
[[data.mbsync]]
activate = false
{{- end }}
{{- end }}

View File

@ -24,8 +24,8 @@ BufferLimit 100M
# #
##########################
{{ if .mbsync.activate }}
{{ range $value := .mbsync[1:] }}
{{ if .mbsync }}
{{ range $value := .mbsync }}
# {{ $value.name }}
#-------------------------