Merge branch 'cedricAbonnel-main-patch-84761' into 'main'

install tesseract with apt is not exist

See merge request cedricAbonnel/scripts-bash!2
This commit is contained in:
Cédric Abonnel 2022-08-14 17:22:14 +00:00
commit 4a364643b4
1 changed files with 17 additions and 0 deletions

View File

@ -17,8 +17,25 @@
# Change log: 2012-01-08: Initial release. Tested on Mac OS X Lion.
#
###############################################################################
clear
# Tesseract existe ?
tesseract --version > /dev/null
RETURNCODE=$?
if [ $RETURNCODE -ne 0 ] ; then
echo -e "Déploiement de TESSERACT OCR avec APT\n"
sudo sudo apt install tesseract-ocr tesseract-ocr-fra
fi
tesseract --version > /dev/null
RETURNCODE=$?
if [ $RETURNCODE -ne 0 ] ; then
echo -e "Impossible d'utiliser TESSERACT\n"
exit 127
fi
fichierLog=convertPDF.log
echo -e "\n"