File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -62,16 +62,17 @@ mkdir spec/draft
6262cp -r " $REPO_ROOT /spec" /* spec/draft/
6363
6464# deploy older versions
65- for RELEASE_BRANCH in $( git branch -r --list ' origin/releases/*' ) ; do
66- version=" $( basename $RELEASE_BRANCH ) "
67- echo Populating spec/$version
65+ for FULLNAME_BRANCH in $( git branch -r --list ' origin/releases/*' ) ; do
66+ VERSION=" $( basename $FULLNAME_BRANCH ) "
67+ RELEASE_BRANCH=releases/$VERSION
68+ echo Populating spec/$VERSION
6869 git -C " $REPO_ROOT " reset --hard
6970 if [[ " $FETCH_BRANCHES " == true ]]; then
7071 git -C " $REPO_ROOT " fetch origin $RELEASE_BRANCH :refs/remotes/origin/$RELEASE_BRANCH
7172 fi
7273 git -C " $REPO_ROOT " checkout $RELEASE_BRANCH
73- mkdir spec/$version
74- cp -r " $REPO_ROOT /spec" /* spec/$version /
74+ mkdir spec/$VERSION
75+ cp -r " $REPO_ROOT /spec" /* spec/$VERSION /
7576done
7677
7778# back to the original branch
You can’t perform that action at this time.
0 commit comments