I18n: fix listing JS files in extract_messages CLI command

This commit is contained in:
Benjamin Renard 2024-09-22 17:54:18 +02:00
parent 6a0bb16517
commit 5d018045c8
Signed by: bn8
GPG key ID: 3E2E1CE1907115BC

View file

@ -548,7 +548,7 @@ class I18n {
// List JS files to parse // List JS files to parse
$cmd = array( $cmd = array(
'find', escapeshellarg($relative_static_directory), 'find', escapeshellarg($relative_static_directory),
'-name', "'*.tpl'", '-type', 'f' '-name', "'*.js'", '-type', 'f'
); );
foreach($excluded_paths as $path) foreach($excluded_paths as $path)
array_push($cmd, "-not", "-path", "'$path'"); array_push($cmd, "-not", "-path", "'$path'");