Browse Source

fix executable name with ss command

pull/3550/head
Daniel Gibbs 4 years ago
parent
commit
2d06520c7d
  1. 5
      lgsm/functions/info_messages.sh

5
lgsm/functions/info_messages.sh

@ -686,7 +686,7 @@ fn_info_message_ports(){
elif [ "${engine}" == "goldsrc" ]; then elif [ "${engine}" == "goldsrc" ]; then
echo -e "ss -tuplwn | grep hlds_linux" echo -e "ss -tuplwn | grep hlds_linux"
else else
executableshort="$(echo "${executable//.\/}" | cut -c -15)" executableshort="$(basename "${executable}" | cut -c -15)"
echo -e "ss -tuplwn | grep ${executableshort}" echo -e "ss -tuplwn | grep ${executableshort}"
fi fi
echo -e "" echo -e ""
@ -1713,8 +1713,7 @@ fn_info_message_select_engine(){
fn_info_message_spark fn_info_message_spark
elif [ "${engine}" == "unreal" ]; then elif [ "${engine}" == "unreal" ]; then
fn_info_message_unreal fn_info_message_unreal
else else
fn_print_error_nl "Unable to detect server engine." fn_print_error_nl "Unable to detect game server."
fi fi
} }

Loading…
Cancel
Save