linux/unix下svn自动更新出错解决:
post-commit hook failed (exit code 255) with no output.
linux/unix下要实现svn提交后自动更新到测试服务器,添加hook即可/usr/svn/mulu/hooks/post-commit 不带后缀
设置权限为可执行
chmod 777 /usr/svn/baoming/hooks/post-commit
代码如下 | 复制代码 |
#!/bin/sh WEB=”/usr/home/mulu” SVN=”/usr/local/bin/svn” $SVN update $WEB –username ppkj.net –password ppkj.net || exit 1 exit 0 |
其中的exit不可缺失,否则会报错
时间: 2024-10-22 17:31:22