From d1987f88ee6fd7279e9227acc515b033fa4fee96 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Fri, 14 Nov 2025 12:47:28 -0500 Subject: [PATCH] [mv3] Shorten output in build script --- platform/mv3/make-rulesets.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platform/mv3/make-rulesets.js b/platform/mv3/make-rulesets.js index d4b5587d5..515948fbd 100644 --- a/platform/mv3/make-rulesets.js +++ b/platform/mv3/make-rulesets.js @@ -118,7 +118,7 @@ const logProgress = text => { /******************************************************************************/ async function fetchText(url, cacheDir) { - logProgress(`Reading locally cached ${url}`); + logProgress(`Reading locally cached ${path.basename(url)}`); const fname = url .replace(/^https?:\/\//, '') .replace(/\//g, '_');(url); @@ -130,7 +130,7 @@ async function fetchText(url, cacheDir) { log(`\tFetched local ${url}`); return { url, content }; } - logProgress(`Fetching remote ${url}`); + logProgress(`Fetching remote ${path.basename(url)}`); log(`\tFetching remote ${url}`); const response = await fetch(url).catch(( ) => { }); if ( response === undefined ) { @@ -152,7 +152,7 @@ async function fetchText(url, cacheDir) { async function fallbackFetchText(url) { const match = /^https:\/\/raw\.githubusercontent\.com\/([^/]+)\/([^/]+)\/master\/([^?]+)/.exec(url); if ( match === null ) { return; } - logProgress(`\tGitHub CLI-fetching remote ${url}`); + logProgress(`\tGitHub CLI-fetching remote ${path.basename(url)}`); // https://docs.github.com/en/rest/repos/contents const content = execSync(`gh api \ -H "Accept: application/vnd.github.raw+json" \