From 046627eca4800c1671679cb8e0eed6c42a0d218e Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Thu, 28 Nov 2024 22:12:44 +0100 Subject: [PATCH] FIx handling users with no docker services --- scripts/Common/Software/docker/main.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Common/Software/docker/main.fish b/scripts/Common/Software/docker/main.fish index bee531a1..c5aa1cd1 100755 --- a/scripts/Common/Software/docker/main.fish +++ b/scripts/Common/Software/docker/main.fish @@ -18,7 +18,7 @@ begin argparse -i "name=" "user=" -- $argv set -l services (getProgramConfig --name "$_flag_name" --json | jq '.services') - for service in (echo "$services" | jq '. | keys[]' --raw-output0 | string split0) + for service in (echo "$services" | jq '. // {} | keys[]' --raw-output0 | string split0) if echo "$services" | SERVICE=$service jq --exit-status ".[env.SERVICE].enable" >/dev/null fish "$dir/services/$service/main.fish" $argv