mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 02:13:33 +08:00
Tools: fix style consistency in shell scripts "if [...]; then"
This commit is contained in:
committed by
Daniel Agar
parent
c21849b9b5
commit
bee1835831
@@ -25,7 +25,7 @@ else
|
||||
if [ "$ASTYLE_VER" != "$ASTYLE_VER_REQUIRED_1" -a \
|
||||
"$ASTYLE_VER" != "$ASTYLE_VER_REQUIRED_2" -a \
|
||||
"$ASTYLE_VER" != "$ASTYLE_VER_REQUIRED_3" -a \
|
||||
"$ASTYLE_VER" != "$ASTYLE_VER_REQUIRED_4" ];
|
||||
"$ASTYLE_VER" != "$ASTYLE_VER_REQUIRED_4" ]
|
||||
then
|
||||
echo "Error: you're using ${ASTYLE_VER}"
|
||||
echo "but should be using ${ASTYLE_VER_REQUIRED_1}, ${ASTYLE_VER_REQUIRED_2}, ${ASTYLE_VER_REQUIRED_3}, or ${ASTYLE_VER_REQUIRED_4} instead"
|
||||
@@ -36,8 +36,7 @@ fi
|
||||
CI="${CI:-false}"
|
||||
DIR=$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)
|
||||
|
||||
if [[ "$@" == "--fix" ]]
|
||||
then
|
||||
if [[ "$@" == "--fix" ]]; then
|
||||
export PX4_ASTYLE_FIX=1
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user