Bugfix in test
This commit is contained in:
parent
e05bfac110
commit
bee8aa182c
3
fax.sh
3
fax.sh
|
@ -65,7 +65,8 @@ then
|
||||||
fi
|
fi
|
||||||
if hash gs 2>/dev/null
|
if hash gs 2>/dev/null
|
||||||
then
|
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
|
then
|
||||||
echo "Sipgate won't send your file, because it has more than 30 pages"
|
echo "Sipgate won't send your file, because it has more than 30 pages"
|
||||||
exit 2
|
exit 2
|
||||||
|
|
Loading…
Reference in a new issue