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