#!/bin/bash

getInstalledApps()
{
    # Get list of directories in containers that have compose files
    local apps=""
    for dir in "$containers_dir"/*; do
        if [[ -d "$dir" && -f "$dir/compose.yml" ]]; then
            local app_name=$(basename "$dir")
            apps="$apps $app_name"
        fi
    done
    echo "$apps"
}
