From b95302a5b004837f2ccc32080abbbc197fbbfe13 Mon Sep 17 00:00:00 2001 From: Jeff LANCE Date: Mon, 4 Mar 2024 13:14:49 +0100 Subject: [PATCH] Up. --- home/.chezmoi.yaml.tmpl | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/home/.chezmoi.yaml.tmpl b/home/.chezmoi.yaml.tmpl index 462d8db..b0857b7 100644 --- a/home/.chezmoi.yaml.tmpl +++ b/home/.chezmoi.yaml.tmpl @@ -1,12 +1,11 @@ {{- $email := promptStringOnce . "email" "Email address " }} {{- $mbsyncAccountNumber := promptIntOnce . "mbsyncAccountNumber" "How many mbsync accounts would you generate " }} +{{- $mbsyncAccountNumber = $mbsyncAccountNumber | int -}} + {{- if gt $mbsyncAccountNumber 0 -}} - {{- range $i, $e := until $mbsyncAccountNumber | int -}} + {{- range $i, $e := until $mbsyncAccountNumber -}} {{- $mbsyncAccountName := promptStringOnce . "mbsync" "MbSync account name " }} - {{- $mbsyncAccountMail := promptStringOnce . "mbsync" "MbSync account mail " }} - {{- $mbsyncAccountUser := promptStringOnce . "mbsync" "MbSync account user " }} - {{- $mbsyncAccountHost := promptStringOnce . "mbsync" "MbSync account host " }} {{- end -}} {{- end -}}