We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2d1faa commit 95773e0Copy full SHA for 95773e0
entrypoint.sh
@@ -1,7 +1,7 @@
1
#!/bin/sh
2
3
# setup ssh
4
-if [[ -z "${ACTIONS_DEPLOY_KEY}" ]]; then
+if [ -z "${ACTIONS_DEPLOY_KEY}" ]; then
5
echo "error: not found ACTIONS_DEPLOY_KEY"
6
exit 1
7
fi
@@ -11,12 +11,12 @@ echo "${ACTIONS_DEPLOY_KEY}" > /root/.ssh/id_rsa
11
chmod 400 /root/.ssh/id_rsa
12
13
# push to gh-pages branch
14
-if [[ -z "${PUBLISH_DIR}" ]]; then
+if [ -z "${PUBLISH_DIR}" ]; then
15
echo "error: not found PUBLISH_DIR"
16
17
18
-cd ${PUBLISH_DIR}
19
-if [[ -z "${PUBLISH_BRANCH}" ]]; then
+cd "${PUBLISH_DIR}" || exit 1
+if [ -z "${PUBLISH_BRANCH}" ]; then
20
echo "error: not found PUBLISH_BRANCH"
21
22
0 commit comments