#!/bin/bash

setupBasicScanVariables()
{
    app_name="$1"

    if [[ "$app_name" == "" ]]; then
        isError "Something went wrong...No app name provided..."
        if [[ "$initial_command2" == "terminal" ]]; then
            resetToMenu;
        fi
    fi

    # Get compose setup configuration
    compose_setup_var="CFG_${app_name^^}_COMPOSE_FILE"
    compose_setup="${!compose_setup_var}"

    # Determine the correct docker-compose.yml file path (same logic as dockerComposeSetupFile)
    if [[ $compose_setup == "default" ]]; then
        docker_compose_file="$containers_dir$app_name/docker-compose.yml";
    elif [[ $compose_setup == "app" ]]; then
        docker_compose_file="$containers_dir$app_name/docker-compose.$app_name.yml";
    else
        # Default to standard docker-compose.yml if compose_setup is not set
        docker_compose_file="$containers_dir$app_name/docker-compose.yml";
    fi
}
