From 6dcd3ab067d5f308434b7564e7c8998404ef9d57 Mon Sep 17 00:00:00 2001 From: lsy Date: Sun, 22 Sep 2024 23:13:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0arch=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=8C=96=E8=84=9A=E6=9C=AC=E5=91=BD=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Config/Automation/backup.sh | 2 ++ Config/Automation/update.sh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Config/Automation/backup.sh b/Config/Automation/backup.sh index 59d88af..512c709 100644 --- a/Config/Automation/backup.sh +++ b/Config/Automation/backup.sh @@ -54,6 +54,8 @@ if [[ ! $baidu_pick =~ [Nn] ]];then sudo apt-get install python3-venv -y elif [[ -f "/usr/bin/apt" ]];then sudo apt-get install python3-venv -y + elif [[ -f "/usr/bin/pacman" ]];then + sudo pacman -Sy python3-venv --noconfirm else echo "无法自动安装 python3-venv 请手动安装" exit diff --git a/Config/Automation/update.sh b/Config/Automation/update.sh index 51aeaa1..a3f81b4 100644 --- a/Config/Automation/update.sh +++ b/Config/Automation/update.sh @@ -13,6 +13,8 @@ if [[ -f "/usr/bin/apt" ]];then elif [[ -f "/usr/bin/apt-get" ]];then echo 'sudo apt-get update -y' >> "${path}/update.sh" echo 'sudo apt dist-upgrade -y' >> "${path}/update.sh" +elif [[ -f "/usr/bin/pacman" ]];then + sudo pacman -Syu --noconfirm else rm "${path}/update.sh" echo "暂不支持该系统配置自动更新软件"