We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df52bae commit cc0bab5Copy full SHA for cc0bab5
paperbackup-verify.sh
@@ -4,10 +4,11 @@
4
# where backup.pdf should be the pdf created with paperbackup.py
5
6
RESTOREPROG=$(dirname $0)/paperrestore.sh
7
+PAPERB2SUMPROG="$(dirname $0)/paperbackup.py --b2sum"
8
9
rPDF=$( $RESTOREPROG $1 )
10
-bPDF=$(echo "$rPDF" | b2sum | cut -d ' ' -f 1 )
11
+bPDF=$(echo "$rPDF" | $PAPERB2SUMPROG )
12
bEmbedded=$(pdftotext $1 - | grep b2sum -A2 | tail -2 | tr -d '\n')
13
14
if [ "x$bPDF" == "x$bEmbedded" ]; then
0 commit comments