Skip to content

Commit ef3302c

Browse files
committed
Update update-components.sh
1 parent 6864671 commit ef3302c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tools/update-components.sh

+2-4
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,14 @@ TINYUSB_REPO_URL="https://github.com/hathach/tinyusb.git"
1212
#
1313
# CLONE/UPDATE ARDUINO
1414
#
15-
env
16-
exit 0
1715

1816
if [ ! -d "$AR_COMPS/arduino" ]; then
1917
git clone $AR_REPO_URL "$AR_COMPS/arduino"
2018
fi
2119

2220
if [ -z $AR_BRANCH ]; then
23-
if [ -z $GITHUB_REF_NAME ]; then
24-
current_branch="$GITHUB_REF_NAME"
21+
if [ -z $GITHUB_HEAD_REF ]; then
22+
current_branch="$GITHUB_HEAD_REF"
2523
else
2624
current_branch=`git branch --show-current`
2725
fi

0 commit comments

Comments
 (0)