Skip to content

Commit

Permalink
fix: shellcheck errors
Browse files Browse the repository at this point in the history
  • Loading branch information
peaceiris committed May 26, 2019
1 parent f2d1faa commit 95773e0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh

# setup ssh
if [[ -z "${ACTIONS_DEPLOY_KEY}" ]]; then
if [ -z "${ACTIONS_DEPLOY_KEY}" ]; then
echo "error: not found ACTIONS_DEPLOY_KEY"
exit 1
fi
Expand All @@ -11,12 +11,12 @@ echo "${ACTIONS_DEPLOY_KEY}" > /root/.ssh/id_rsa
chmod 400 /root/.ssh/id_rsa

# push to gh-pages branch
if [[ -z "${PUBLISH_DIR}" ]]; then
if [ -z "${PUBLISH_DIR}" ]; then
echo "error: not found PUBLISH_DIR"
exit 1
fi
cd ${PUBLISH_DIR}
if [[ -z "${PUBLISH_BRANCH}" ]]; then
cd "${PUBLISH_DIR}" || exit 1
if [ -z "${PUBLISH_BRANCH}" ]; then
echo "error: not found PUBLISH_BRANCH"
exit 1
fi
Expand Down

0 comments on commit 95773e0

Please sign in to comment.