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:
commit
4a364643b4
17
convertPDF
17
convertPDF
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue