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:
parent
e3f7dd2ca5
commit
b2f0fb4c04
1 changed files with 6 additions and 0 deletions
|
@ -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]}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue