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

2
ssm
View File

@ -398,7 +398,7 @@ main() {
if [[ $1 == /* ]]; then if [[ $1 == /* ]]; then
service_config=$1 service_config=$1
else else
for i in "${service_path[@]/%//$service_name}"; do for i in "${service_path[@]/%//$1}"; do
[[ -f "$i" ]] && { [[ -f "$i" ]] && {
service_config=$i service_config=$i
break break