2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-06-02 18:30:52 +00:00
qpdf/qpdf/qtest/qpdf/diff-encrypted
Andreas Stieger 7049588bff Fix tests with GNU grep 3.8
GNU grep 3.8 started to emit warnings when invoking egrep.
Convert all calls to grep -E.
2022-09-09 06:57:38 -04:00

8 lines
180 B
Bash
Executable File

#!/bin/sh
lines=$(expr 0 + $(diff "$1" "$2" | grep -E '^[<>]' | grep -E -v '(Date|InstanceID)' | wc -l))
if [ "$lines" = "0" ]; then
echo okay
else
diff -a -U 0 "$1" "$2"
fi