Fix LICENSE file check in make-icons.jsscript (#2306)

This commit is contained in:
Martin Thiele
2024-12-06 19:03:24 +01:00
committed by GitHub
parent f7b7ab95f8
commit 76b495a2ac

View File

@@ -21,7 +21,7 @@ const srcPath = `./.cache/icons/icons-${version}`;
const url = `https://github.com/twbs/icons/archive/v${version}.zip`; const url = `https://github.com/twbs/icons/archive/v${version}.zip`;
try { try {
await fs.stat(`${srcPath}/LICENSE.md`); await fs.stat(`${srcPath}/LICENSE`);
} catch { } catch {
// Download the source from GitHub (since not everything is published to npm) // Download the source from GitHub (since not everything is published to npm)
await download(url, './.cache/icons', { extract: true }); await download(url, './.cache/icons', { extract: true });