diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-07-08 19:43:27 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-07-08 19:43:27 +0200 |
commit | 5270a80edb6afd8d95c65edd76bcae659dae11bd (patch) | |
tree | c1c50602486bfa8eb6e606005f2404ea95e310b7 | |
parent | 855679f6101d5cb5c894fde9cf4d4892b9aceb87 (diff) | |
parent | 13b41a2629ddf964951eb228534c5a9680a0f100 (diff) | |
download | px4-firmware-5270a80edb6afd8d95c65edd76bcae659dae11bd.tar.gz px4-firmware-5270a80edb6afd8d95c65edd76bcae659dae11bd.tar.bz2 px4-firmware-5270a80edb6afd8d95c65edd76bcae659dae11bd.zip |
Merge pull request #1154 from sjwilks/submodule_tool
Make the check for an empty string more compatible with linux distros
-rwxr-xr-x | Tools/check_submodules.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/check_submodules.sh b/Tools/check_submodules.sh index fb180ef47..db81ed04a 100755 --- a/Tools/check_submodules.sh +++ b/Tools/check_submodules.sh @@ -3,7 +3,7 @@ if [ -d NuttX/nuttx ]; then STATUSRETVAL=$(git status --porcelain | grep -i "NuttX") - if [ "$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 [ "$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'" |