安装软件之前先更新
This commit is contained in:
parent
9661d4d9cb
commit
24de264de1
@ -5,8 +5,10 @@ declare install_str
|
||||
declare pkg
|
||||
if [[ -f "/usr/bin/apt-get" ]];then
|
||||
pkg='apt-get'
|
||||
sudo apt-get update
|
||||
elif [[ -f "/usr/bin/apt" ]];then
|
||||
pkg='apt'
|
||||
sudo apt dist-upgrade
|
||||
else
|
||||
echo "暂不支持该系统一键安装常用软件"
|
||||
exit
|
||||
|
Loading…
Reference in New Issue
Block a user