[mv3] Fix Github Actions

This commit is contained in:
Raymond Hill 2025-04-13 15:37:07 -04:00
parent 20f52daf9b
commit e11335f5ad
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

@ -104,6 +104,12 @@ const log = (text, silent = true) => {
console.log = log;
const logProgress = text => {
process?.stdout?.clearLine();
process?.stdout?.cursorTo(0);
process?.stdout?.write(text);
};
/******************************************************************************/
const urlToFileName = url => {
@ -114,9 +120,7 @@ const urlToFileName = url => {
const fetchText = (url, cacheDir) => {
return new Promise((resolve, reject) => {
process.stdout.clearLine();
process.stdout.cursorTo(0);
process.stdout.write(`Fetching ${url}`);
logProgress(`Fetching ${url}`);
const fname = urlToFileName(url);
fs.readFile(`${cacheDir}/${fname}`, { encoding: 'utf8' }).then(content => {
log(`\tFetched local ${url}`);
@ -1573,8 +1577,7 @@ async function main() {
homeURL: 'https://github.com/sander85/uBOL-et',
});
process.stdout.clearLine();
process.stdout.cursorTo(0);
logProgress('');
writeFile(
`${rulesetDir}/ruleset-details.json`,