Skip to content

Commit cc0bab5

Browse files
committed
Switch to --b2sum in paperbackup.py i.s.o. b2sum binary
1 parent df52bae commit cc0bab5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

paperbackup-verify.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44
# where backup.pdf should be the pdf created with paperbackup.py
55

66
RESTOREPROG=$(dirname $0)/paperrestore.sh
7+
PAPERB2SUMPROG="$(dirname $0)/paperbackup.py --b2sum"
78

89
rPDF=$( $RESTOREPROG $1 )
910

10-
bPDF=$(echo "$rPDF" | b2sum | cut -d ' ' -f 1 )
11+
bPDF=$(echo "$rPDF" | $PAPERB2SUMPROG )
1112
bEmbedded=$(pdftotext $1 - | grep b2sum -A2 | tail -2 | tr -d '\n')
1213

1314
if [ "x$bPDF" == "x$bEmbedded" ]; then

0 commit comments

Comments
 (0)