FIx handling users with no docker services
This commit is contained in:
parent
7f9616be02
commit
6d1c9fee53
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ begin
|
||||||
argparse -i "name=" "user=" -- $argv
|
argparse -i "name=" "user=" -- $argv
|
||||||
set -l services (getProgramConfig --name "$_flag_name" --json | jq '.services')
|
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
|
if echo "$services" | SERVICE=$service jq --exit-status ".[env.SERVICE].enable" >/dev/null
|
||||||
fish "$dir/services/$service/main.fish" $argv
|
fish "$dir/services/$service/main.fish" $argv
|
||||||
|
|
Loading…
Reference in a new issue