FIx handling users with no docker services

This commit is contained in:
Manuel Thalmann 2024-11-28 22:12:44 +01:00
parent 7f9616be02
commit 6d1c9fee53

View file

@ -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