mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-11 17:13:56 -03:00
autotest: quote words as they go into generated ritw file
This commit is contained in:
parent
55ac480e91
commit
ca5bf02d7c
@ -25,7 +25,7 @@ if [ -n "$SITL_RITW_TERMINAL" ]; then
|
||||
FILENAME="ritw-`date '+%Y%m%d%H%M%S'`"
|
||||
FILEPATH="$TMPDIR/$FILENAME"
|
||||
echo "#!/bin/sh" >"$FILEPATH"
|
||||
echo "$*" >>"$FILEPATH"
|
||||
printf "%q " "$@" >>"$FILEPATH"
|
||||
chmod +x "$FILEPATH"
|
||||
$SITL_RITW_TERMINAL "$FILEPATH" &
|
||||
elif [ -n "$DISPLAY" -a -n "$(which osascript)" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user