mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
Pipe to wc
This commit is contained in:
parent
2f61184ad3
commit
f8625bcad8
@ -42,7 +42,7 @@ git config --global user.name "${COMMIT_NAME}" && \
|
|||||||
|
|
||||||
# Checks to see if the remote exists prior to deploying.
|
# Checks to see if the remote exists prior to deploying.
|
||||||
# If the branch doesn't exist it gets created here as an orphan.
|
# If the branch doesn't exist it gets created here as an orphan.
|
||||||
if [ `git ls-remote --heads "https://${ACCESS_TOKEN}@github.com:JamesIves/reddit-viewer.git" $BRANCH` ]
|
if [ `git ls-remote --heads "https://${ACCESS_TOKEN}@github.com:JamesIves/reddit-viewer.git" $BRANCH | wc -l` ]
|
||||||
then
|
then
|
||||||
echo "Creating remote branch ${BRANCH} as it doesn't exist..."
|
echo "Creating remote branch ${BRANCH} as it doesn't exist..."
|
||||||
git checkout --orphan $BRANCH && \
|
git checkout --orphan $BRANCH && \
|
||||||
|
Loading…
Reference in New Issue
Block a user