change / to | in sed

This commit is contained in:
Luk Lu
2021-07-04 08:37:28 +08:00
parent f9fe9abb39
commit 0b5aa51682
6 changed files with 36 additions and 22 deletions

View File

@@ -1,5 +1,6 @@
#!/bin/bash
echo "in [RepoRoot]/*/*/hooks/post-receive & pre-receive, gogs is hard-coded with full path such as /faronear/git/gogs, you need to replace it if the path is changed."
read -p "Enter old hook path: >> " OLDPATH
read -p "Enter new hook path: >> " NEWPATH
read -p "Enter repository root path: >> " REPOROOT