diff --git a/ssm b/ssm index 75b891e..3d60b6f 100755 --- a/ssm +++ b/ssm @@ -276,7 +276,7 @@ info() { "Name" "$service_name" "Type" "$_type" "$_status_label" "$_status" - "Exec" "$service_command ${service_args[*]}" + "Exec" "${service_command[*]} ${service_args[*]}" "Respawn" "${service_respawn:-false}" ) @@ -315,7 +315,7 @@ restart() { "$0" "$service_name" start } -logs() { "${PAGER:-less}" "$service_logfile"; } +logs() { ${PAGER:-less} "$service_logfile"; } ## Status is a bit of a special case. It's talkative. status() {