From 15f3b139fd8cebcc9e2c84547a6fae42ad35a77e Mon Sep 17 00:00:00 2001 From: lsy Date: Thu, 12 Sep 2024 15:29:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8=E5=8C=85=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=99=A8=E5=89=8D=E9=83=BD=E5=85=88=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Menus/Other.sh | 4 ++++ Menus/Software.sh | 2 ++ 2 files changed, 6 insertions(+) diff --git a/Menus/Other.sh b/Menus/Other.sh index 6a245ce..3235efe 100644 --- a/Menus/Other.sh +++ b/Menus/Other.sh @@ -24,9 +24,13 @@ case "$pick" in echo "2.英文" read -p "请输入:" lang if [[ -f "/usr/bin/apt-get" ]];then + sudo apt-get update + sudo apt-get dist-upgrade sudo apt-get install -y locales sudo apt-get install -y language-pack-zh-hans elif [[ -f "/usr/bin/apt" ]];then + sudo apt update + sudo apt dist-upgrade sudo apt install -y locales sudo apt install -y language-pack-zh-hans else diff --git a/Menus/Software.sh b/Menus/Software.sh index 24f527c..3fcd62e 100644 --- a/Menus/Software.sh +++ b/Menus/Software.sh @@ -7,8 +7,10 @@ declare pkg if [[ -f "/usr/bin/apt-get" ]];then pkg='apt-get' sudo apt-get update + sudo apt-get dist-upgrade elif [[ -f "/usr/bin/apt" ]];then pkg='apt' + sudo apt update sudo apt dist-upgrade else echo "暂不支持该系统一键安装常用软件"