From 276ee95318f54f0dfda8689f3705a1d95ef8a618 Mon Sep 17 00:00:00 2001 From: Jeff LANCE Date: Mon, 4 Mar 2024 13:07:44 +0100 Subject: [PATCH] Up. --- home/.chezmoi.yaml.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home/.chezmoi.yaml.tmpl b/home/.chezmoi.yaml.tmpl index a6a00f8..3b9c0ce 100644 --- a/home/.chezmoi.yaml.tmpl +++ b/home/.chezmoi.yaml.tmpl @@ -1,7 +1,7 @@ {{- $email := promptStringOnce . "email" "Email address " }} -{{- $mbsyncAccountNumber := promptIntOnce . "mbsyncAccountNumber" "How many mbsync accounts would you generate " | int }} +{{- $mbsyncAccountNumber := promptIntOnce . "mbsyncAccountNumber" "How many mbsync accounts would you generate " }} -{{- if gt $mbsyncAccountNumber 0 }} +{{- if gt {{- $mbsyncAccountNumber | int -}} 0 -}} {{- range $i, $e := until $mbsyncAccountNumber -}} {{- $mbsyncAccountName := promptStringOnce . "mbsync.name" "MbSync account name " }} {{- $mbsyncAccountMail := promptStringOnce . "mbsync.mail" "MbSync account mail " }}