diff --git a/helpers/config b/helpers/config index 67d8704..a4893fe 100755 --- a/helpers/config +++ b/helpers/config @@ -260,3 +260,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 +} +