standardize apt-get

This commit is contained in:
aptalca
2021-09-21 13:54:09 -04:00
parent 81c7a69ed5
commit d4197ecdad
2 changed files with 3 additions and 1 deletions
+3
View File
@@ -0,0 +1,3 @@
#!/usr/bin/with-contenv bash
apt-get update
-1
View File
@@ -2,7 +2,6 @@
if [ -n "$OCRLANG" ]; then
echo "OCRLANG variable is set, processing the language packages"
apt-get update
for i in $(echo "$OCRLANG" | tr "," " "); do
if apt-cache show tesseract-ocr-"${i}" > /dev/null 2>&1; then
echo "installing tesseract-ocr-${i}"