diff --git a/Tools/autotest/run_in_terminal_window.sh b/Tools/autotest/run_in_terminal_window.sh index 343f745b157bd..7eccc9412dd5d 100755 --- a/Tools/autotest/run_in_terminal_window.sh +++ b/Tools/autotest/run_in_terminal_window.sh @@ -28,7 +28,7 @@ if [ -n "$SITL_RITW_TERMINAL" ]; then printf "%q " "$@" >>"$FILEPATH" chmod +x "$FILEPATH" $SITL_RITW_TERMINAL "$FILEPATH" & -elif [ "$TERM" = "screen" ] && [ -n "$TMUX" ]; then +elif [ -n "$TMUX" ]; then tmux new-window -dn "$name" "$*" elif [ -n "$DISPLAY" -a -n "$(which osascript)" ]; then osascript -e 'tell application "Terminal" to do script "'"cd $(pwd) && clear && $* "'"'