代码拉取完成,页面将自动刷新
#!/bin/bash
OS=`uname -s`
if [ ${OS} == "Darwin" ];then
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install grep findutils flex
brew tap homebrew/cask
brew cask install phantomjs
elif [ ${OS} == "Linux" ];then
source /etc/os-release
case $ID in
debian|ubuntu|devuan)
sudo apt-get install flex bison phantomjs
;;
centos|fedora|rhel)
yumdnf="yum"
if test "$(echo "$VERSION_ID >= 22" | bc)" -ne 0;
then
yumdnf="dnf"
fi
sudo $yumdnf install -y flex bison phantomjs
;;
*)
exit 1
;;
esac
else
echo "Other OS: ${OS}"
fi
SHELL_FOLDER=$(dirname "$0")
pip3 install -r $SHELL_FOLDER/requirements.txt
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。