diff --git a/spcd/bootstrap.sh b/spcd/bootstrap.sh index b7af92d..f0077ee 100644 --- a/spcd/bootstrap.sh +++ b/spcd/bootstrap.sh @@ -199,7 +199,7 @@ _spcd_step_wipe() { _SPCD_TXT_CHARSET="UTF-8" _SPCD_TXT_LOCALE_DEFAULT="C" -_spcd_txt_pick() { +_spcd_txt() { case "${SPCD_TXT_LOCALE}" in "${SPCD_TXT_LOCALE_ENGLISH}") echo "${1}" ;; "${SPCD_TXT_LOCALE_FRENCH}") echo "${2}" ;; @@ -342,9 +342,9 @@ spcd_step_out() { SPCD_TXT_LOCALE_ENGLISH="en_US" SPCD_TXT_LOCALE_FRENCH="fr_FR" -spcd_txt_get() { +spcd_txt() { case "${1}" in - "set") _spcd_txt_pick "Set" "Définir" ;; + "set") _spcd_txt "Set" "Définir" ;; *) ;; esac } @@ -377,7 +377,7 @@ SPCD_PM_ZYPPER="zypper" # ╰───┴───────────╯ spcd_e_default() { - spcd_step "$(spcd_txt_get "set")" + spcd_step "$(spcd_txt "set")" [ -n "${SPCD_DNS_1}" ] || SPCD_DNS_1="9.9.9.9"