diff --git a/change-git-hook-path.sh b/change-git-hook-path.sh index b92a51d..0ba8d5e 100755 --- a/change-git-hook-path.sh +++ b/change-git-hook-path.sh @@ -4,9 +4,6 @@ read -p "Enter old hook path: >> " OLDPATH read -p "Enter new hook path: >> " NEWPATH read -p "Enter repository root path: >> " REPOROOT -echo '$REPOROOT' -echo "$REPOROOT" - sed -i "s:$OLDPATH:$NEWPATH:g" `grep "$OLDPATH" -rl $REPOROOT/*/*/hooks/` echo "Completed replacing $OLDPATH to $NEWPATH recursively in folder $REPOROOT" diff --git a/serve-svn.sh b/serve-svn.sh index c67b544..d882d62 100755 --- a/serve-svn.sh +++ b/serve-svn.sh @@ -1,2 +1,6 @@ + +# install +# sudo apt install subversion -y + # 不能用 PM2 启动,会报错端口号被占用。可能因为svnserve本身就已经是服务。 svnserve -d -r ./svn.repo