Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
Jack L. Frost 2020-12-03 19:14:21 +03:00
parent be3d90ea79
commit 608e7d4d9d

5
ssm
View File

@ -746,7 +746,7 @@ for d in "$rundir" "$rundir/current" "$logdir"; do
done done
# Common service path # Common service path
service_path += "$XDG_CONFIG_HOME/ssm/services" '/etc/ssm/services' "$rundir/services" "$usrdir/services" service_path += "$rundir/current" "$XDG_CONFIG_HOME/ssm/services" '/etc/ssm/services' "$usrdir/services"
# Special actions # Special actions
if flag_list_services; then if flag_list_services; then
@ -781,12 +781,13 @@ if [[ $service_name == /* ]]; then
service_config = "$service_name" service_config = "$service_name"
service_name = "${service_name##*/}" service_name = "${service_name##*/}"
else else
for i in "$service_config_current" "${service_path[@]/%//$service_name}"; do for i in "${service_path[@]/%//$service_name}"; do
[[ -f "$i" ]] && { [[ -f "$i" ]] && {
service_config = "$i" service_config = "$i"
break break
} }
done done
fi fi
# We really don't want this overriden # We really don't want this overriden