diff --git a/helpers/config b/helpers/config index aa14b09..a2bf774 100755 --- a/helpers/config +++ b/helpers/config @@ -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 +} +