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

config: add function to simplify patch application.

parent ac1e2ba9
No related branches found
No related tags found
1 merge request!1386config: add function to simplify patch application.
......@@ -280,3 +280,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