mirror of
https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root.git
synced 2025-12-06 08:07:40 +00:00
Update patch.sh
This commit is contained in:
2
patch.sh
2
patch.sh
@@ -16,7 +16,7 @@ get_patch() {
|
|||||||
local included_start=$(grep -n -m1 'INCLUDE PATCHES' "$patch_file" | cut -d':' -f1)
|
local included_start=$(grep -n -m1 'INCLUDE PATCHES' "$patch_file" | cut -d':' -f1)
|
||||||
local excluded_patches=$(tail -n +$excluded_start $patch_file | head -n "$(( included_start - excluded_start ))" | grep '^[^#[:blank:]]')
|
local excluded_patches=$(tail -n +$excluded_start $patch_file | head -n "$(( included_start - excluded_start ))" | grep '^[^#[:blank:]]')
|
||||||
local included_patches=$(tail -n +$included_start $patch_file | grep '^[^#[:blank:]]')
|
local included_patches=$(tail -n +$included_start $patch_file | grep '^[^#[:blank:]]')
|
||||||
local patches=()
|
patches=()
|
||||||
if [[ -n "$excluded_patches" ]]; then
|
if [[ -n "$excluded_patches" ]]; then
|
||||||
while read -r patch; do
|
while read -r patch; do
|
||||||
patches+=("-e $patch")
|
patches+=("-e $patch")
|
||||||
|
|||||||
Reference in New Issue
Block a user