From 74e85c0698dc2f104b5a2cb414bf6f895411913c Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Wed, 15 Jan 2025 05:44:35 +0100 Subject: [PATCH] fix for the selfmade yaml2json --- get-local-url.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/get-local-url.sh b/get-local-url.sh index 8a68eeb3..d36bd411 100755 --- a/get-local-url.sh +++ b/get-local-url.sh @@ -10,11 +10,11 @@ while IFS= read -r line; do done < "$BASEPATH/path-blacklist.txt" # Parse Docker Compose file to get all services -services=$(cat $BASEPATH/$1.yml | yaml2json | jq -r '.services | keys | .[]') +services=$(cat $BASEPATH/$1.yml | yaml2json - | jq -r '.services | keys | .[]') for service in $services; do - labels=($(cat "$BASEPATH/$1.yml" | yaml2json | jq -r ".services[\"$service\"].labels[]")) + labels=($(cat "$BASEPATH/$1.yml" | yaml2json - | jq -r ".services[\"$service\"].labels[]")) for label in "${labels[@]}"; do if [[ "$label" == *"stripprefix.prefixes"* ]]; then