fix: Corregir case-sensitivity en ruta de Schemas para Linux
- Cambiar '/schemas' a '/Schemas' en MigrationCommand.php - Permite que wp roi-theme sync_component funcione en servidores Linux 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -55,7 +55,7 @@ final class MigrationCommand
|
|||||||
}
|
}
|
||||||
|
|
||||||
$component_name = $args[0];
|
$component_name = $args[0];
|
||||||
$schemas_path = get_template_directory() . '/schemas';
|
$schemas_path = get_template_directory() . '/Schemas';
|
||||||
$schema_file = $schemas_path . '/' . $component_name . '.json';
|
$schema_file = $schemas_path . '/' . $component_name . '.json';
|
||||||
|
|
||||||
if (!file_exists($schema_file)) {
|
if (!file_exists($schema_file)) {
|
||||||
@@ -97,7 +97,7 @@ final class MigrationCommand
|
|||||||
*/
|
*/
|
||||||
public function sync_all_components(array $args, array $assoc_args): void
|
public function sync_all_components(array $args, array $assoc_args): void
|
||||||
{
|
{
|
||||||
$schemas_path = get_template_directory() . '/schemas';
|
$schemas_path = get_template_directory() . '/Schemas';
|
||||||
|
|
||||||
if (!is_dir($schemas_path)) {
|
if (!is_dir($schemas_path)) {
|
||||||
\WP_CLI::error("Directorio de schemas no encontrado: {$schemas_path}");
|
\WP_CLI::error("Directorio de schemas no encontrado: {$schemas_path}");
|
||||||
|
|||||||
Reference in New Issue
Block a user