1 Star 0 Fork 59

dracoding / process1

forked from openEuler / sysmaster 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
requirements.sh 932 Bytes
一键复制 编辑 原始数据 按行查看 历史
hexiaowen 提交于 2022-03-08 16:48 . add signal hangle for process1
#!/bin/bash
#1.check pre-commit
#echo -e "---!!!CHECK pre-commit !!!---"
pre-commit --version && [ -e .git/hooks/pre-commit ]
if [ $? -ne 0 ]; then
cat << EOF
你的环境缺少pre-commit hook, 你可以:
参考:https://pre-commit.com/#rust
1.安装pre-commit...
pip install pre-commit
brew install pre-commit
conda install -c conda-forge pre-commit
2.安装git pre-commit hook...
pre-commit install
EOF
echo "5s 后自动安装!!!"
sleep 5
pip install pre-commit
pre-commit install
git config --global init.templateDir ~/.git-template
pre-commit init-templatedir ~/.git-template
fi
#echo -e "---!!!CHECK cargo-deny !!!---"
cargo deny -V > /dev/null 2>&1
if [ $? -ne 0 ]; then
cat << EOF
你的环境缺少cargo deny工具, 你可以:
参考:https://github.com/EmbarkStudios/cargo-deny
1. 安装cargo deny
cargo install --locked cargo-deny
# Or, if you're an Arch user
yay -S cargo-deny
EOF
exit 1
fi
1
https://gitee.com/dracoding/process1.git
git@gitee.com:dracoding/process1.git
dracoding
process1
process1
master

搜索帮助