Bookstack cleaned

This commit is contained in:
2024-07-26 11:33:24 -07:00
parent 2f1c6757c8
commit 351bbada86
5 changed files with 35 additions and 24 deletions
+2 -3
View File
@@ -15,12 +15,11 @@ get_env_vars() {
local compose_content="$1"
local env_vars=""
# Use yq to extract the environment variables in 'key: value' format
env_vars=$(echo "$compose_content" | yq eval '.services.*.environment | to_entries | .[] | "\(.key): \(.value)"' - 2>/dev/null)
# Use yq to extract environment variables in 'key=value' format without indices
env_vars=$(echo "$compose_content" | yq eval '.services.*.environment[]' - 2>/dev/null)
echo "$env_vars"
}
get_image() {
local compose_content="$1"
local images=""