From df7f8fa41b7d06b4e78fc70283fb9053309af8f1 Mon Sep 17 00:00:00 2001 From: spiritLHLS <103393591+spiritLHLS@users.noreply.github.com> Date: Mon, 24 Apr 2023 09:19:32 +0800 Subject: [PATCH] Update create_vm.sh --- scripts/create_vm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/create_vm.sh b/scripts/create_vm.sh index 2e39f04..280db79 100644 --- a/scripts/create_vm.sh +++ b/scripts/create_vm.sh @@ -9,7 +9,7 @@ _red() { echo -e "\033[31m\033[01m$@\033[0m"; } _green() { echo -e "\033[32m\033[01m$@\033[0m"; } _yellow() { echo -e "\033[33m\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) if [[ -z "$utf8_locale" ]]; then _yellow "No UTF-8 locale found"