From 08fdf3c3fac7e5c5f5495a8bbdc23d17a69bf91a Mon Sep 17 00:00:00 2001 From: Luk Lu Date: Sun, 14 Feb 2021 10:57:03 +0800 Subject: [PATCH] u --- change-git-hook-path.sh | 3 --- serve-svn.sh | 4 ++++ 2 files changed, 4 insertions(+), 3 deletions(-) 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