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 "暂不支持该系统配置自动更新软件"