commit be38002054ccf7266a354240134c95042587005a parent f419733fd462464b3d25884fa4fc8b81184202a6 Author: Jan Pobrislo <ccx@webprojekty.cz> Date: Thu, 28 Jul 2022 23:02:29 +0200 Fix parameter name Diffstat:
M | command/s | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/command/s b/command/s @@ -40,7 +40,7 @@ show_oneshots() { local -a fmt_active=( '%F{yellow}%BA%b%f' '%F{cyan}I%f' ) local s for s in $oneshots; do - printf "%s %s\t%s\n" ${(%)fmt_active[${active_services[$s]:-2}]} $s ${(j: :)${(f)service_bundles[$s]}} + printf "%s %s\t%s\n" ${(%)fmt_active[${service_active[$s]:-2}]} $s ${(j: :)${(f)service_bundles[$s]}} done } @@ -54,7 +54,7 @@ show_longruns() { [[ $state == up && $sv_stat[3] == ? ]] && state=starting fi if (($+service_type[$s])); then - active=${active_services[$s]:-2} + active=${service_active[$s]:-2} else active=3 fi