From b2f0fb4c04b5e9f57f15bf1a6ee333eb32e2c3d6 Mon Sep 17 00:00:00 2001 From: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> Date: Wed, 3 Jan 2024 14:34:10 +0100 Subject: [PATCH] scripts/check-pr: check only for English pages (#11980) --- scripts/check-pr.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/check-pr.sh b/scripts/check-pr.sh index 6c1115fa1a..0a82c43e9a 100755 --- a/scripts/check-pr.sh +++ b/scripts/check-pr.sh @@ -28,6 +28,12 @@ function check_duplicates { readarray -td'/' parts < <(echo -n "$page") + local language_folder=${parts[0]} + + if [[ "$language_folder" != "pages" ]]; then # only check for duplicates in English + return 1 + fi + local platform=${parts[1]} local file=${parts[2]}