1
0
This commit is contained in:
Jeff Lance 2024-03-04 15:59:16 +01:00
parent b5b63a4e9a
commit f68b1b5541

View File

@ -1,7 +1,7 @@
chezmoi:template:missing-key=zero
[data]
email = {{ promptString "Git main email address " "" | quote }}
{{- with promptInt "How many mbsync accounts would you generate " 0 -}}{{- $count := . | int }}
{{- with promptInt "How many mbsync accounts would you generate " -}}{{- $count := . | int }}
{{- if gt $count 0 -}}
{{- range $i, $e := until $count }}
[[data.mbsync]]
@ -11,8 +11,10 @@ mail = {{ promptString "MbSync account mail " | quote }}
user = {{ promptString "MbSync account user " | quote }}
host = {{ promptString "MbSync account host " | quote }}
{{- end }}
{{ else -}}
{{- end }}
{{ else }}
[[data.mbsync]]
active = false
{{- end }}
{{- end }}