mirror of
https://github.com/qpdf/qpdf.git
synced 2024-06-19 18:32:21 +00:00
951dbc3b7f
expr needs ARG + ARG quote paths to support support spaces
9 lines
191 B
Bash
Executable File
9 lines
191 B
Bash
Executable File
#!/bin/sh
|
|
lines=$(expr 0 + $(diff "$1" "$2" | egrep '^[<>]' | \
|
|
egrep -v '/ID' | egrep -v '%PDF-' | wc -l))
|
|
if [ "$lines" = "0" ]; then
|
|
echo okay
|
|
else
|
|
diff -a -U 0 "$1" "$2"
|
|
fi
|