Skip to content

Commit

Permalink
fix: overwriting
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardogobbosouza committed Nov 23, 2023
1 parent 1a46fc5 commit b4a612f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/downloader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,11 @@ export class Downloader extends Hookable<DownloaderHooks> {
const currentCssContent = readFileSync(cssPath, 'utf-8')
const currentUrl = (currentCssContent.split(/\r?\n/, 1).shift() || '').replace('/*', '').replace('*/', '').trim()

overwriting = currentUrl !== this.url
if (currentUrl === this.url) {
return
}

overwriting = true
}

if (overwriting) {
Expand Down

0 comments on commit b4a612f

Please sign in to comment.