Skip to content

Commit 95773e0

Browse files
committed
fix: shellcheck errors
1 parent f2d1faa commit 95773e0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

entrypoint.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22

33
# setup ssh
4-
if [[ -z "${ACTIONS_DEPLOY_KEY}" ]]; then
4+
if [ -z "${ACTIONS_DEPLOY_KEY}" ]; then
55
echo "error: not found ACTIONS_DEPLOY_KEY"
66
exit 1
77
fi
@@ -11,12 +11,12 @@ echo "${ACTIONS_DEPLOY_KEY}" > /root/.ssh/id_rsa
1111
chmod 400 /root/.ssh/id_rsa
1212

1313
# push to gh-pages branch
14-
if [[ -z "${PUBLISH_DIR}" ]]; then
14+
if [ -z "${PUBLISH_DIR}" ]; then
1515
echo "error: not found PUBLISH_DIR"
1616
exit 1
1717
fi
18-
cd ${PUBLISH_DIR}
19-
if [[ -z "${PUBLISH_BRANCH}" ]]; then
18+
cd "${PUBLISH_DIR}" || exit 1
19+
if [ -z "${PUBLISH_BRANCH}" ]; then
2020
echo "error: not found PUBLISH_BRANCH"
2121
exit 1
2222
fi

0 commit comments

Comments
 (0)