From 27650c08aa9138a16c723c509e3b024119ff9c89 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 18 Sep 2017 08:26:04 +1000 Subject: [PATCH] Tools: autotest: use -z in place of -v for checking variable settedness Some bash versions out there don't like -v --- 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 9e6e1cb5f7..1790eb1499 100755 --- a/Tools/autotest/run_in_terminal_window.sh +++ b/Tools/autotest/run_in_terminal_window.sh @@ -7,7 +7,7 @@ name="$1" shift echo "RiTW: Starting $name : $*" -if [ ! -v SITL_RITW_MINIMIZE ]; then +if [ -z "$SITL_RITW_MINIMIZE" ]; then SITL_RITW_MINIMIZE=1 fi