wrong index

Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
2026-11-27 12:30:23 +00:00
parent 69028b6572
commit 4748900615
+2 -1
View File
@@ -827,7 +827,7 @@ done
flag_reset_exit && { reset-exit; die $?; }
# Get the service config
source -- "$service_config" "${@:3}" || die 7 "Failed to read the service config: $service_config"
source -- "$service_config" "${@:2}" || die 7 "Failed to read the service config: $service_config"
# Rexec ourselves in the requested netns
flag_no_netns || {
@@ -946,6 +946,7 @@ fi
action || {
flag_reread_service && die 0 # Not a mistake if the service was to be re-read
usage; die 2; }
shift
# Do we have such a function?
if_service_action "$action" || die 17 "Function $action is not defined for $service_name."