diff --git a/spcd/bootstrap.sh b/spcd/bootstrap.sh index b08934c..0a12e88 100644 --- a/spcd/bootstrap.sh +++ b/spcd/bootstrap.sh @@ -318,6 +318,17 @@ spcd_step_out() { __SPCD_STEP_LEVEL=$((__SPCD_STEP_LEVEL - 1)) } +# ╭───────────┬─────╮ +# │ functions │ txt │ +# ╰───────────┴─────╯ + +spcd_txt_get() { + case "${1}" in + "set") _spcd_txt_pick "Set" "Définir" ;; + *) ;; + esac +} + # ╭──────╮ # │ step │ # ╰──────╯ @@ -377,7 +388,7 @@ spcd_step__environment_defaults_print() { } spcd_step__environment_defaults_set() { - spcd_step "Set" + spcd_step "$(spcd_txt_get "set")" [ -n "${SPCD_CMD_SUM}" ] || SPCD_CMD_SUM="sha512sum" [ -n "${SPCD_DNS_1}" ] || SPCD_DNS_1="9.9.9.9"