Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们这里有一个带有多个路径的 svn 服务器。
我正在寻找的,而且我可能看起来不够努力,是一个提交后脚本,每当将某些内容签入特定路径时,它都会对另一台服务器执行 ssh 并运行 bash 脚本。
关于快速简便的方法或已经存在的提交后脚本的任何想法?
REPOS="$1" REV="$2" svnlook changed $REPOS -r $REV | grep "YourFilePattern" 1>/dev/null if [ "$?" == "0" ] ; then ssh user@example.com foo.bash fi