Skip to content

Commit f02c0cd

Browse files
jimustafatimhoffm
andauthored
update check-layout.sh
Co-authored-by: Tim Hoffmann <[email protected]>
1 parent b05a580 commit f02c0cd

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

check-layout.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#!/bin/bash
2+
#
3+
# Check that a given pdf has a certain number of pages.
4+
# Usage:
5+
# check-num-pages.sh [pdffile] [num_pages]
26

37
set -x
4-
5-
[[ "$(pdfinfo $1 | grep Pages | awk '{print $2}')" == "$2" ]] || exit 1
8+
# pdffile=$1
9+
# num_pages=$1
10+
[[ "$(pdfinfo $pdffile | grep Pages | awk '{print $2}')" == "$num_pages" ]] || exit 1

0 commit comments

Comments
 (0)