mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-02 02:01:36 +08:00
Merge pull request #1154 from sjwilks/submodule_tool
Make the check for an empty string more compatible with linux distros
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
if [ -d NuttX/nuttx ];
|
if [ -d NuttX/nuttx ];
|
||||||
then
|
then
|
||||||
STATUSRETVAL=$(git status --porcelain | grep -i "NuttX")
|
STATUSRETVAL=$(git status --porcelain | grep -i "NuttX")
|
||||||
if [ "$STATUSRETVAL" == "" ]; then
|
if [ -z "$STATUSRETVAL" ]; then
|
||||||
echo "Checked NuttX submodule, correct version found"
|
echo "Checked NuttX submodule, correct version found"
|
||||||
else
|
else
|
||||||
echo "NuttX sub repo not at correct version. Try 'make updatesubmodules'"
|
echo "NuttX sub repo not at correct version. Try 'make updatesubmodules'"
|
||||||
@@ -19,7 +19,7 @@ fi
|
|||||||
if [ -d mavlink/include/mavlink/v1.0 ];
|
if [ -d mavlink/include/mavlink/v1.0 ];
|
||||||
then
|
then
|
||||||
STATUSRETVAL=$(git status --porcelain | grep -i "mavlink/include/mavlink/v1.0")
|
STATUSRETVAL=$(git status --porcelain | grep -i "mavlink/include/mavlink/v1.0")
|
||||||
if [ "$STATUSRETVAL" == "" ]; then
|
if [ -z "$STATUSRETVAL" ]; then
|
||||||
echo "Checked mavlink submodule, correct version found"
|
echo "Checked mavlink submodule, correct version found"
|
||||||
else
|
else
|
||||||
echo "mavlink sub repo not at correct version. Try 'make updatesubmodules'"
|
echo "mavlink sub repo not at correct version. Try 'make updatesubmodules'"
|
||||||
|
|||||||
Reference in New Issue
Block a user