Skip to content
Snippets Groups Projects
Commit 210b5704 authored by Beat Küng's avatar Beat Küng Committed by Lorenz Meier
Browse files

px4fmu_common rcS: fix MAVLINK_F test

fixes a 'test: syntax error' message on startup. There were two problems:
- the expansion of $MAVLINK_F lead to multiple arguments in the test
  when the variable contained spaces. Fixed with ""
- the x prevents interpretation as a unary expression, if $MAVLINK_F starts
  with a - character (in that case the expansion would be:
  if [ -r 1200 ... and nsh interprets - as unary expression)
parent 3bb479f7
No related branches found
No related tags found
No related merge requests found
......@@ -511,7 +511,7 @@ then
fi
fi
if [ $MAVLINK_F == "none" ]
if [ "x$MAVLINK_F" == xnone ]
then
else
mavlink start $MAVLINK_F
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment