From f33bc6bbabb8166a3078ab08469513371da2d93c Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 1 Sep 2024 19:31:30 +0200 Subject: [PATCH] dns/list --- spcd/bootstrap.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/spcd/bootstrap.sh b/spcd/bootstrap.sh index 8df7a3b..75b8d60 100644 --- a/spcd/bootstrap.sh +++ b/spcd/bootstrap.sh @@ -202,6 +202,15 @@ _spcd_txt_pick() { spcd_dns() { local index name value case "${1}" in + "list") + while true; do + index=$((index + 1)) + name="SPCD_DNS_${index}" + eval "value=\"\${name}\"" + [ -n "${value}" ] || break + echo "${name} = \"${value}\"" + done + ;; "write") local text while true; do @@ -454,6 +463,7 @@ SPCD_PM_ZYPPER="zypper" # ╰──────┴─────────────╯ spcd_step__environment_defaults_print() { + spcd_dns "list" set -- \ \ \