- A+
所属分类:Centos
1.自动同步-强制下拉
#!/bin/sh
##su - www <<endtag
user=$(whoami)
echo $user
echo "start";
result=$(echo $user | grep www)
echo $result;
if [[ "$result" != "" ]];then
echo "满足用户条件";
else
echo "不满足用户条件";
exit 8
fi
for x in a b c; do
echo _${x}_
done;
cd /www/wwwroot/tp.shikexu.com/
git remote -v ##仓库罗列
git fetch --all
git reset --hard tp/master
git pull tp master
echo "hello jack";
##endtag
##开始执行
- 我的微信
- 这是我的微信扫一扫
-
- 我的微信公众号
- 我的微信公众号扫一扫
-