Fix privateDomain required multiple times, use promptStringOnce

This commit is contained in:
2024-11-07 19:46:46 -06:00
parent ee96ffc370
commit 9c00efb981

View File

@@ -33,6 +33,8 @@
{{- $wsl = (.chezmoi.kernel.osrelease | lower | contains "microsoft") -}}
{{- end -}}
{{ $privateDomain := promptStringOnce . "privateDomain" "What is the private domain" }}
[merge]
command = "bash"
args = [
@@ -41,9 +43,9 @@ args = [
]
[data]
privateDomain = "{{ promptString "Enter the private domain" }}"
chassis = "{{ $chassisType }}"
wsl = {{ $wsl }}
privateDomain = {{ $privateDomain | quote }}
chassis = {{ $chassisType | quote }}
wsl = {{ $wsl | quote }}
[data.cpu]
cores = {{ $cpuCores }}