Ignore gh-pages in branch list

This commit is contained in:
Chris Hunt 2023-01-13 18:28:53 +00:00
parent 7fd210c506
commit 81f87b8e02

View File

@ -9,7 +9,7 @@ cat > base/_redirects << EOF
EOF
# Generating documentation for each other branch in a subdirectory
for BRANCH in $(git branch --remotes --format '%(refname:lstrip=3)' | grep -Ev '^(HEAD|develop)$'); do
for BRANCH in $(git branch --remotes --format '%(refname:lstrip=3)' | grep -Ev '^(HEAD|develop|gh-pages)$'); do
echo "$BRANCH" >> base/versions.txt
git checkout $BRANCH
node processing