Tools: autotest: use -z in place of -v for checking variable settedness

Some bash versions out there don't like -v
This commit is contained in:
Peter Barker 2017-09-18 08:26:04 +10:00
parent 15a7a9e6f8
commit 27650c08aa
1 changed files with 1 additions and 1 deletions

View File

@ -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