Daniel Gibbs 8 лет назад
Родитель
Сommit
6de42480be
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      lgsm/functions/command_debug.sh

+ 3 - 2
lgsm/functions/command_debug.sh

@@ -96,15 +96,16 @@ fn_script_log_info "${rootdir}/${lockselfname}"
 trap fn_lockfile_trap INT
 
 cd "${executabledir}" || exit
+# Note: do not add double quotes to ${executable} ${parms}
 if [ "${engine}" == "source" ]||[ "${engine}" == "goldsource" ]; then
 	${executable} ${parms} -debug
 elif [ "${engine}" == "realvirtuality" ]; then
 	# Arma3 requires semicolons in the module list, which need to
 	# be escaped for regular (tmux) loading, but need to be
 	# stripped when loading straight from the console.
-	"${executable}" "${parms//\\;/;}"
+	${executable} ${parms//\\;/;}
 else
-	"${executable}" "${parms}"
+	${executable} ${parms}
 fi
 
 fn_print_dots "Stopping debug"