分享SVN自动检出内容到指定路径的钩子脚本

User Password DeployPath 分别为仓库用户名、仓库用户密码、要检出的路径

适用于post-commit

#!/bin/bash
DeployPath='/www/wwwroot'
User='root'
Password='12345678'
export LANG='zh_CN.UTF-8'
cd $DeployPath
# svn cleanup
svn checkout svn://127.0.0.1/666 . --username $User --password $Password

原创文章,作者:witersen,如若转载,请注明出处:https://www.witersen.com

(0)
witersen的头像witersen
上一篇 2020年11月30日 下午11:08
下一篇 2020年12月3日 上午9:37

相关推荐

发表回复

登录后才能评论