添加arch自动化脚本命令

This commit is contained in:
lsy 2024-09-22 23:13:33 +08:00
parent 7822f5b316
commit 6dcd3ab067
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

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