From 903d3e98883e0496bc74507ed399b0f7997b5af0 Mon Sep 17 00:00:00 2001 From: fbt Date: Thu, 21 Dec 2017 16:53:58 +0300 Subject: [PATCH] small fix Signed-off-by: fbt --- ssm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssm b/ssm index 64d40f1..80d1b17 100755 --- a/ssm +++ b/ssm @@ -398,7 +398,7 @@ main() { if [[ $1 == /* ]]; then service_config=$1 else - for i in "${service_path[@]/%//$service_name}"; do + for i in "${service_path[@]/%//$1}"; do [[ -f "$i" ]] && { service_config=$i break