Skip to content

Commit b1fe3e0

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

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tools/update-components.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@ fi
1919

2020
if [ -z $AR_BRANCH ]; then
2121
if [ -z $GITHUB_HEAD_REF ]; then
22-
current_branch="$GITHUB_HEAD_REF"
23-
else
2422
current_branch=`git branch --show-current`
23+
else
24+
current_branch="$GITHUB_HEAD_REF"
2525
fi
26+
echo "Current Branch: $current_branch"
2627
if [[ "$current_branch" != "master" && `git_branch_exists "$AR_COMPS/arduino" "$current_branch"` == "1" ]]; then
2728
export AR_BRANCH="$current_branch"
2829
else

0 commit comments

Comments
 (0)