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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -92,6 +92,8 @@ get_patches_key() {
includePatches=""
excludeLinesFound=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
num=${BASH_REMATCH[1]}
if [ $num -ge 5 ]; then