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