commit fca0a5cf6b09b4284d950c80289f386b4b67d047
parent a40ac230c0d3ab375fcf8dc74cb69978007d9115
Author: Jan Pobrislo <ccx@webprojekty.cz>
Date: Fri, 29 Jul 2022 02:05:44 +0200
Fix parameter name collision
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/command/s b/command/s
@@ -21,7 +21,7 @@ load_s6_rc() {
typeset -gA service_bundles bundle_services service_in_bundle service_active
typeset -ga active_services
- local b s bundles
+ local b s svc_bundles
active_services=( "${(@f)"$( s6-rc -a list )"}" ) || exit $?
for s in $active_services; do
@@ -34,8 +34,8 @@ load_s6_rc() {
service_bundles[$s]+=$b$'\n'
done
done
- for s bundles in "${(kv@)service_bundles}"; do
- service_bundles[$s]=${bundles%$'\n'}
+ for s svc_bundles in "${(kv@)service_bundles}"; do
+ service_bundles[$s]=${svc_bundles%$'\n'}
done
process_bundles