From 20a23d8bf20a25cd36b19028a033fed2548b1475 Mon Sep 17 00:00:00 2001 From: Ashwin Nambiar Date: Tue, 21 May 2024 15:54:20 +1000 Subject: [PATCH] Tools: update run_in_terminal_window.sh Remove the TERM variable dependency --- Tools/autotest/run_in_terminal_window.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 && $* "'"'