From 87c98ed75f8b2420b0a23eeb37d8223ce108df1a Mon Sep 17 00:00:00 2001 From: spiritLHLS <103393591+spiritLHLS@users.noreply.github.com> Date: Fri, 24 Feb 2023 14:09:37 +0800 Subject: [PATCH] Update build_backend.sh --- build_backend.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build_backend.sh b/build_backend.sh index 316467b..e429c8a 100644 --- a/build_backend.sh +++ b/build_backend.sh @@ -10,7 +10,7 @@ _blue() { echo -e "\033[36m\033[01m$@\033[0m"; } # 创建资源池 POOL_ID="mypool" if pvesh get /pools/$POOL_ID > /dev/null 2>&1 ; then - echo "资源池 $POOL_ID 已经存在!" + _green "资源池 $POOL_ID 已经存在!" else # 如果不存在则创建 _green "正在创建资源池 $POOL_ID..." @@ -24,11 +24,11 @@ install_required_modules() { for module in "${modules[@]}" do if dpkg -s $module > /dev/null 2>&1 ; then - echo "$module 已经安装!" + _green "$module 已经安装!" else apt-get update apt-get install -y $module - echo "$module 已成功安装!" + _green "$module 已成功安装!" fi done }