We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54142c9 commit ed3acbbCopy full SHA for ed3acbb
deploy-site.sh
@@ -9,7 +9,7 @@ TARGET_BRANCH=${1:-gh-pages}
9
CURRENT_BRANCH=`git symbolic-ref -q HEAD | sed -e 's|^refs/heads/||'`
10
npm run generate-site
11
git fetch origin $TARGET_BRANCH
12
-if [ `git branch --list origin/$TARGET_BRANCH `]; then \
+if [ `git branch --list -a origin/$TARGET_BRANCH` ]; then \
13
git checkout -B $TARGET_BRANCH origin/$TARGET_BRANCH
14
else \
15
git checkout --orphan $TARGET_BRANCH && \
0 commit comments