1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00

scripts/check-pr: check only for English pages (#11980)

This commit is contained in:
Sebastiaan Speck 2024-01-03 14:34:10 +01:00 committed by GitHub
parent e3f7dd2ca5
commit b2f0fb4c04
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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]}