Skip to content

Commit 68aaf7c

Browse files
Update deploy.sh
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 4ffadc4 commit 68aaf7c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

deploy.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,10 @@ if [[ -z "${APP_PORT:-}" ]]; then
126126
fi
127127
fi
128128
APP_PORT=${APP_PORT:-8888}
129+
if ! [[ "${APP_PORT}" =~ ^[0-9]+$ ]] || (( APP_PORT < 1 || APP_PORT > 65535 )); then
130+
echo "Invalid APP_PORT '${APP_PORT}'. Must be an integer between 1 and 65535." >&2
131+
exit 1
132+
fi
129133

130134
echo
131135
echo "Domain: ${DOMAIN}"

0 commit comments

Comments
 (0)