mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-26 01:17:51 +08:00
Tools: fix style consistency in shell scripts "if [...]; then"
This commit is contained in:
committed by
Daniel Agar
parent
c21849b9b5
commit
bee1835831
@@ -23,15 +23,12 @@ DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
||||
# otherwise warn and point to docker?
|
||||
UBUNTU_RELEASE=`lsb_release -rs`
|
||||
|
||||
if [[ "${UBUNTU_RELEASE}" == "14.04" ]]
|
||||
then
|
||||
if [[ "${UBUNTU_RELEASE}" == "14.04" ]]; then
|
||||
echo "Ubuntu 14.04 unsupported, see docker px4io/px4-dev-base"
|
||||
exit 1
|
||||
elif [[ "${UBUNTU_RELEASE}" == "16.04" ]]
|
||||
then
|
||||
elif [[ "${UBUNTU_RELEASE}" == "16.04" ]]; then
|
||||
echo "Ubuntu 16.04"
|
||||
elif [[ "${UBUNTU_RELEASE}" == "18.04" ]]
|
||||
then
|
||||
elif [[ "${UBUNTU_RELEASE}" == "18.04" ]]; then
|
||||
echo "Ubuntu 18.04"
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user