config: add function to simplify patch application.
This commit is contained in:
parent
b440107ea3
commit
df85682d15
1 changed files with 6 additions and 0 deletions
|
|
@ -270,3 +270,9 @@ sed_csum() {
|
|||
echo "> Checksum replace for $1 in progress..."
|
||||
grep -rl "$1" "${3:-"./"}" | xargs -r /bin/sed -i "s|$1|$2|"
|
||||
}
|
||||
|
||||
patch_p1() {
|
||||
echo "> Applying $(echo $1|xargs basename):"
|
||||
patch --no-backup-if-mismatch -p1 < $1
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue