Skip to content

Commit afb7c8e

Browse files
authored
Fixing length check
1 parent 00f9489 commit afb7c8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/generate_deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ if [ -n "${AWS_R53_SUB_DOMAIN_NAME}" ]; then
6767
aws_r53_sub_domain_name="aws_r53_sub_domain_name = \"${AWS_R53_SUB_DOMAIN_NAME}\""
6868
else
6969
concatenated_string="${GITHUB_IDENTIFIER}.${AWS_R53_DOMAIN_NAME}"
70-
if [ ${#concatenated_string} -gt 64 ]; then
70+
if [ ${#concatenated_string} -gt 64 ] && [[ $(alpha_only "$AWS_SITE_CDN_ENABLED") == "false" ]] ; then
7171
aws_r53_sub_domain_name="aws_r53_sub_domain_name = \"${GITHUB_IDENTIFIER_SS}\""
7272
else
7373
aws_r53_sub_domain_name="aws_r53_sub_domain_name = \"${GITHUB_IDENTIFIER}\""

0 commit comments

Comments
 (0)