Update check_pr.yml

This commit is contained in:
Joab authored and GitHub committed 2023-12-27 14:18:15 +08:00
1 parent 5224ee7e9c
commit 243d251e76
1 file changed
+1 -1
+1 -1
View File
@@ -29,7 +29,7 @@ jobs:
TYPE=$(jq -r '.type // "CNAME"' ${jsonfile})
URL=$(jq -r '.url' ${jsonfile})
if [ ${TYPE} = "CNAME" ] || [ -z ${TYPE} ]; then
if echo ${URL} | grep -E '^https?://[^/]*/[^/]+'; then
if echo ${URL} | grep -qE '^https?://[^/]*/.*'; then
echo "URL in ${jsonfile} must not contain subdirectories for CNAME records."
exit 1
fi