1
0
mirror of synced 2025-12-25 02:17:36 -05:00

fix: update permissions and command execution for linting translation files (#22922)

* fix: make script for linting translations executable

* fix: execute the command directly

* feat: surface any errors if lint check fails

* fix: do not return early if lint check errors

Co-authored-by: Octomerger Bot <63058869+Octomerger@users.noreply.github.com>
This commit is contained in:
Francis
2021-11-18 13:36:33 -08:00
committed by GitHub
parent f17c7a2598
commit 8f4140fa9f

5
script/i18n/lint-translation-files.js Normal file → Executable file
View File

@@ -53,10 +53,9 @@ function lintAndResetFiles(checkType) {
// Lint the files based on the check type and output the errors to a log file.
try {
execSync(cmd[checkType])
execSync(cmd)
} catch (error) {
console.log(`There were new ${checkType} errors!`)
return
console.log(`There were new ${checkType} errors! Check ${log} for more details.`)
}
// Reset the files