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:
5
script/i18n/lint-translation-files.js
Normal file → Executable file
5
script/i18n/lint-translation-files.js
Normal file → Executable 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
|
||||
|
||||
Reference in New Issue
Block a user