From ce451f4ffe250617aa0b139167026021e8d439b5 Mon Sep 17 00:00:00 2001 From: Jeff LANCE Date: Mon, 4 Mar 2024 14:35:01 +0100 Subject: [PATCH] Up. --- home/.chezmoi.toml.tmpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/home/.chezmoi.toml.tmpl b/home/.chezmoi.toml.tmpl index 493f956..b656162 100644 --- a/home/.chezmoi.toml.tmpl +++ b/home/.chezmoi.toml.tmpl @@ -1,8 +1,8 @@ [data] email = {{ promptString "Git main email address " "" | quote }} -{{- with promptInt "How many mbsync accounts would you generate " 0 -}}{{- $mbsyncAccountNumber := . | int -}} -{{- if gt $mbsyncAccountNumber 0 -}} -{{- range $i, $e := until $mbsyncAccountNumber }} +{{- with promptInt "How many mbsync accounts would you generate " 0 -}}{{- $count := . | int -}} +{{- if gt $count 0 -}} +{{- range $i, $e := until $count }} [[data.mbsync]] name = {{ promptString "MbSync account name " | quote }} mail = {{ promptString "MbSync account mail " | quote }}