From 47489006151d24a067bf6af1249777518e3d1dcf Mon Sep 17 00:00:00 2001 From: fbt Date: Fri, 27 Nov 2026 12:30:23 +0000 Subject: [PATCH] wrong index Signed-off-by: fbt --- ssm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ssm b/ssm index b1257d4..9f0ada2 100755 --- a/ssm +++ b/ssm @@ -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."