small fix

Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
Jack L. Frost 2017-12-21 16:53:58 +03:00
parent 025d74179b
commit 903d3e9888
1 changed files with 1 additions and 1 deletions

2
ssm
View File

@ -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