Skip to content

Commit

Permalink
Update update-components.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason2866 authored May 31, 2021
1 parent 1a959ba commit 5f5e5fe
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions tools/update-components.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,10 @@ source ./tools/config.sh
#
# CLONE/UPDATE ARDUINO
#
if [ -z $ARDUINO_BRANCH ]; then
has_ar_branch=`git_branch_exists "$AR_COMPS/arduino" "idf-$IDF_BRANCH"`
if [ "$has_ar_branch" == "1" ]; then
ARDUINO_BRANCH="idf-$IDF_BRANCH"
else
has_ar_branch=`git_branch_exists "$AR_COMPS/arduino" "$AR_PR_TARGET_BRANCH"`
if [ "$has_ar_branch" == "1" ]; then
ARDUINO_BRANCH="$AR_PR_TARGET_BRANCH"
else
ARDUINO_BRANCH="master"
fi
fi
ARDUINO_BRANCH="release/v1.0"
ARDUINO_HAS_BRANCH=`git_branch_exists "$AR_COMPS/arduino" "idf-$IDF_BRANCH"`
if [ "$ARDUINO_HAS_BRANCH" == "1" ]; then
ARDUINO_BRANCH="idf-$IDF_BRANCH"
fi

if [ ! -d "$AR_COMPS/arduino" ]; then
Expand Down

0 comments on commit 5f5e5fe

Please sign in to comment.