Browse Source

Fix: avoid update adguardhome time even w/o changes

SukkaW 1 year ago
parent
commit
8d4c927c23
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Build/lib/rules/base.ts

+ 4 - 0
Build/lib/rules/base.ts

@@ -379,6 +379,10 @@ export async function fileEqual(linesA: string[], source: AsyncIterable<string>)
     if (lineA[0] === '#' && lineB[0] === '#') {
       continue;
     }
+    // adguard conf
+    if (lineA[0] === '!' && lineB[0] === '!') {
+      continue;
+    }
     if (
       lineA[0] === '/'
       && lineA[1] === '/'