Commit 8352bd9a authored by Miguel Angel Reina Ortega's avatar Miguel Angel Reina Ortega
Browse files

Debug

parent cb549d70
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -47,6 +47,8 @@ if [ -z "$configs" ]; then
    exit 1
fi

echo $configs

# Process each config file
echo "$configs" | while read -r config; do
    echo "Processing config file: $config"
@@ -69,7 +71,7 @@ echo "$configs" | while read -r config; do
    fi
    
    # Find corresponding openapi name for this config
    new_name=$(grep -A20 "^[[:space:]]*$project_prefix:" "$2" | grep -B1 "config_file:.*$config" | grep "openapi_name" | sed 's/.*openapi_name:[[:space:]]*"\(.*\)".*/\1/')
    new_name=$(grep -A20 "^[[:space:]]*$project_prefix:" "../$2" | grep -B1 "config_file:.*$config" | grep "openapi_name" | sed 's/.*openapi_name:[[:space:]]*"\(.*\)".*/\1/')
    
    if [ ! -z "$new_name" ]; then
        echo "Renaming $openapi to $new_name"