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