Bugfix in test

callerid
Gandalf 2021-04-19 13:13:53 +02:00
parent e05bfac110
commit bee8aa182c
1 changed files with 2 additions and 1 deletions

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