From df85682d15d6645d93d625e776a5d9686633c0fd Mon Sep 17 00:00:00 2001 From: Ark74 Date: Wed, 22 May 2024 15:36:29 -0600 Subject: [PATCH] config: add function to simplify patch application. --- helpers/config | 6 ++++++ 1 file changed, 6 insertions(+) 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 +} +