Fix issue enable/disable patches

Fixed https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/issues/57
Convert Window Line Endings to Unix Line Endings
This commit is contained in:
Fioren
2025-06-02 00:27:10 +07:00
committed by GitHub
parent faf1ea4318
commit ae425d35f0

View File

@@ -92,6 +92,8 @@ get_patches_key() {
includePatches="" includePatches=""
excludeLinesFound=false excludeLinesFound=false
includeLinesFound=false includeLinesFound=false
sed -i 's/\r$//' src/patches/$1/include-patches
sed -i 's/\r$//' src/patches/$1/exclude-patches
if [[ $(ls revanced-cli-*.jar) =~ revanced-cli-([0-9]+) ]]; then if [[ $(ls revanced-cli-*.jar) =~ revanced-cli-([0-9]+) ]]; then
num=${BASH_REMATCH[1]} num=${BASH_REMATCH[1]}
if [ $num -ge 5 ]; then if [ $num -ge 5 ]; then