From bee8aa182c4d411263c17841f3612a036bc27974 Mon Sep 17 00:00:00 2001 From: Gandalf Date: Mon, 19 Apr 2021 13:13:53 +0200 Subject: [PATCH] Bugfix in test --- fax.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fax.sh b/fax.sh index 4c92a3e..5bca8e7 100755 --- a/fax.sh +++ b/fax.sh @@ -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