添加arch自动化脚本命令
This commit is contained in:
parent
7822f5b316
commit
6dcd3ab067
@ -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
|
||||
|
@ -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 "暂不支持该系统配置自动更新软件"
|
||||
|
Loading…
Reference in New Issue
Block a user