This commit is contained in:
Luk Lu
2021-02-14 10:57:03 +08:00
parent fce109d02d
commit 08fdf3c3fa
2 changed files with 4 additions and 3 deletions

View File

@@ -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"