From 69df5c96190d743b02390f00cdc3235362cba00e 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 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 +} +