mirror of
https://github.com/oneclickvirt/pve.git
synced 2024-11-16 04:55:56 +08:00
Update create_vm.sh
This commit is contained in:
parent
78ebcfd912
commit
144f412bc7
1 changed files with 2 additions and 1 deletions
|
@ -10,12 +10,13 @@ _green() { echo -e "\033[32m\033[01m$@\033[0m"; }
|
||||||
_yellow() { echo -e "\033[33m\033[01m$@\033[0m"; }
|
_yellow() { echo -e "\033[33m\033[01m$@\033[0m"; }
|
||||||
_blue() { echo -e "\033[36m\033[01m$@\033[0m"; }
|
_blue() { echo -e "\033[36m\033[01m$@\033[0m"; }
|
||||||
reading(){ read -rp "$(_green "$1")" "$2"; }
|
reading(){ read -rp "$(_green "$1")" "$2"; }
|
||||||
utf8_locale=$(locale -a 2>/dev/null | grep -i -m 1 utf8)
|
utf8_locale=$(locale -a 2>/dev/null | grep -i -m 1 -E "utf8|UTF-8")
|
||||||
if [[ -z "$utf8_locale" ]]; then
|
if [[ -z "$utf8_locale" ]]; then
|
||||||
_yellow "No UTF-8 locale found"
|
_yellow "No UTF-8 locale found"
|
||||||
else
|
else
|
||||||
export LC_ALL="$utf8_locale"
|
export LC_ALL="$utf8_locale"
|
||||||
export LANG="$utf8_locale"
|
export LANG="$utf8_locale"
|
||||||
|
export LANGUAGE="$utf8_locale"
|
||||||
_green "Locale set to $utf8_locale"
|
_green "Locale set to $utf8_locale"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue