From 5be5864694212d52a7ebc32518a7381482b724af Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Wed, 12 Nov 2014 18:37:56 +0000 Subject: [PATCH] fn_debug will now echo -debug if used --- functions/fn_debugserver | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/functions/fn_debugserver b/functions/fn_debugserver index ab0cca08c..10637e29a 100644 --- a/functions/fn_debugserver +++ b/functions/fn_debugserver @@ -21,7 +21,12 @@ echo -e "Kernel: ${kernel}" echo -e "Hostname: $HOSTNAME" echo "" echo "Start parameters:" -echo ${executable} ${parms} +if [ "${engine}" == "source" ]||[ "${engine}" == "goldsource" ]; then + echo "${executable} ${parms} -debug" +else + echo "${executable} ${parms}" +fi + echo "" echo -e "Use for identifying server issues only!" echo -e "Press CTRL+c to drop out of debug mode"