about summary refs log tree commit diff
path: root/pkgs/applications/graphics
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/graphics')
-rwxr-xr-xpkgs/applications/graphics/tesseract/fetch-language-hashes2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/applications/graphics/tesseract/fetch-language-hashes b/pkgs/applications/graphics/tesseract/fetch-language-hashes
index c431f1d97c260..05d4514898e30 100755
--- a/pkgs/applications/graphics/tesseract/fetch-language-hashes
+++ b/pkgs/applications/graphics/tesseract/fetch-language-hashes
@@ -25,7 +25,7 @@ else
                    >&2 echo "Invalid tessdataRev: $tessdataRev"
                    exit 1
                })
-    langCodes=$(echo $(echo "$repoPage" | grep -ohP "(?<=/)[^/]+?(?=\.traineddata)" | sort))
+    langCodes=$(echo $(echo "$repoPage" | grep -ohP "(?<=/)[^/ ]+?(?=\.traineddata)" | sort -u))
 fi
 
 for lang in $langCodes; do