Skip to content
Snippets Groups Projects
Commit df85682d authored by Luis Guzmán's avatar Luis Guzmán
Browse files

config: add function to simplify patch application.

parent b440107e
No related branches found
No related tags found
1 merge request!1376config: add function to simplify patch application.
......@@ -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
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment