加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
install.aex 1.76 KB
一键复制 编辑 原始数据 按行查看 历史
Rajkumar Dusad 提交于 2021-09-20 15:21 . Update install.aex
# Tool Name :- Tool-X
# Date :- 1/11/2017
if [ -e /usr/lib/sudo ];then
if [ -e /usr/bin/apt-get ];then
if [ ! -e /usr/bin/python3 ];then
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install python -y
sudo apt-get install python3 -y
fi
fi
else
if [ -d /usr/bin ];then
if [ -e /usr/bin/apt-get ];then
if [ ! -e /usr/bin/python3 ];then
apt-get update
apt -get upgrade -y
apt-get install python -y
apt-get install python3 -y
fi
fi
fi
fi
if [ -d /data/data/com.termux/files/usr/bin ]; then
if [ ! -e /data/data/com.termux/files/usr/bin/python3 ];then
pkg update
pkg upgrade -y
pkg install python -y
pkg install python3 -y
fi
fi
if [ -e /usr/lib/sudo ];then
if [ -e /usr/bin/yum ];then
if [ ! -e /usr/bin/python3 ];then
sudo yum update
sudo yum upgrade -y
sudo yum install python -y
sudo yum install python3 -y
fi
fi
else
if [ -d /usr/bin ];then
if [ -e /usr/bin/yum ];then
if [ ! -e /usr/bin/python3 ];then
yum update
yum upgrade -y
yum install python -y
yum install python3 -y
fi
fi
fi
fi
if [ -e /usr/local/bin/brew ];then
if [ ! -e /usr/local/bin/python3 ];then
brew install python -y
brew install python3 -y
fi
fi
if [ -e /usr/local/bin/brew ];then
if [ ! -e /usr/local/bin/python ];then
brew install python -y
brew install python3 -y
fi
fi
if [ -e /usr/bin/apk ];then
if [ ! -e /usr/bin/python ];then
apk install python -y
apk install python3 -y
fi
fi
if [ -e /usr/bin/apk ];then
if [ ! -e /usr/bin/python3 ];then
apk install python -y
apk install python3 -y
fi
fi
pip install -r requirements.txt
python3 install.py
exit
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化