Bugfix in test

This commit is contained in:
Gandalf 2021-04-19 13:13:53 +02:00
parent e05bfac110
commit bee8aa182c

3
fax.sh
View file

@ -65,7 +65,8 @@ then
fi
if hash gs 2>/dev/null
then
if [ $(gs -q -dNODISPLAY -c "(fax.pdf) (r) file runpdfbegin pdfpagecount = quit" 2>&1) -gt 30 ]
PAGES=$(gs -q -dNODISPLAY -c "($FILE) (r) file runpdfbegin pdfpagecount = quit" 2>&1)
if [ $PAGES -gt 30 ]
then
echo "Sipgate won't send your file, because it has more than 30 pages"
exit 2