Skip to content

Commit

Permalink
scripts: reformat travis_update_generated_repos.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
khancyr authored and LorenzMeier committed Nov 28, 2018
1 parent 556fda4 commit e2a0f24
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/travis_update_generated_repos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Do only build for Python 2.7
# as we only want to deploy for one
# unique generator.
PYTHONVER=`python -c 'import sys; print(".".join(map(str, sys.version_info[:3])))'`
PYTHONVER=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:3])))')

if [[ $PYTHONVER != "2.7"* ]]
then
Expand All @@ -28,7 +28,7 @@ git remote rename origin upstream
git config --global user.email "[email protected]"
git config --global user.name "PX4BuildBot"
git config --global credential.helper "store --file=$HOME/.git-credentials"
echo "https://${GH_TOKEN}:@github.com" > $HOME/.git-credentials
echo "https://${GH_TOKEN}:@github.com" > "$HOME"/.git-credentials

# Build C library
GEN_START_PATH=$PWD
Expand All @@ -38,7 +38,7 @@ git clone https://github.com/mavlink/c_library_v2.git
cd ../../..
./scripts/update_c_library.sh 2
# v1.0 legacy
cd $GEN_START_PATH
cd "$GEN_START_PATH"
mkdir -p include/mavlink/v1.0
cd include/mavlink/v1.0
git clone https://github.com/mavlink/c_library_v1.git
Expand Down

0 comments on commit e2a0f24

Please sign in to comment.