diff --git a/scripts/fetch-ral.js b/scripts/fetch-ral.js index fc2a1ee15d..5e4d005d2c 100644 --- a/scripts/fetch-ral.js +++ b/scripts/fetch-ral.js @@ -137,8 +137,10 @@ async function removeDir (dirPath) { (async () => { try { + console.time('Fetch RAL'); if (checkFile() && matchCommit()) { console.log('Skip fetching ral!\n'); + console.timeEnd('Fetch RAL'); process.exit(0); } await cleanOldRal(); @@ -151,6 +153,7 @@ async function removeDir (dirPath) { copyRal(); writeLocalCommitFile(); await removeDir(repositoryPath); + console.timeEnd('Fetch RAL'); process.exit(0); } catch (err) { console.error('Fetch ral failed', err);