Skip to content

Commit f71cbeb

Browse files
committed
📖 DOC: Improve SERVER_TYPE validation and case handling in entrypoint.sh
1 parent bee7d90 commit f71cbeb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set -e
33

44
# Validate the required environment variables
55
validate() {
6-
: ${SERVER_TYPE:?"SERVER_TYPE variable missing from environment variables."}
6+
: ${SERVER_TYPE^^:?"SERVER_TYPE variable missing from environment variables."}
77
: ${SSH_PRIVATE_KEY:?"SSH_PRIVATE_KEY variable missing from environment variables."}
88
: ${SERVER_ID:?"SERVER_ID variable missing from environment variables."}
99
REMOTE_PATH="${REMOTE_PATH:-""}"
@@ -16,7 +16,7 @@ validate() {
1616

1717
# Set up environment variables
1818
setup_env() {
19-
case "${SERVER_TYPE^^}" in
19+
case "${SERVER_TYPE}" in
2020
PRESSABLE)
2121
SSH_HOST="ssh.pressable.com"
2222
SERVER_BASE_PATH="~/htdocs"

0 commit comments

Comments
 (0)