mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Add quotes around the variable. It's safer.
This commit is contained in:
parent
b4ab31a2ba
commit
13b41a2629
@ -3,7 +3,7 @@
|
||||
if [ -d NuttX/nuttx ];
|
||||
then
|
||||
STATUSRETVAL=$(git status --porcelain | grep -i "NuttX")
|
||||
if [ -z $STATUSRETVAL ]; then
|
||||
if [ -z "$STATUSRETVAL" ]; then
|
||||
echo "Checked NuttX submodule, correct version found"
|
||||
else
|
||||
echo "NuttX sub repo not at correct version. Try 'make updatesubmodules'"
|
||||
@ -19,7 +19,7 @@ fi
|
||||
if [ -d mavlink/include/mavlink/v1.0 ];
|
||||
then
|
||||
STATUSRETVAL=$(git status --porcelain | grep -i "mavlink/include/mavlink/v1.0")
|
||||
if [ -z $STATUSRETVAL ]; then
|
||||
if [ -z "$STATUSRETVAL" ]; then
|
||||
echo "Checked mavlink submodule, correct version found"
|
||||
else
|
||||
echo "mavlink sub repo not at correct version. Try 'make updatesubmodules'"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user