mirror of
https://github.com/qpdf/qpdf.git
synced 2024-12-23 03:18:59 +00:00
Fix expr syntax, support spaces in paths
expr needs ARG + ARG quote paths to support support spaces
This commit is contained in:
parent
3c1555a622
commit
951dbc3b7f
@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
lines=$(expr + $(diff $1 $2 | egrep '^[<>]' | egrep -v '(Date|InstanceID)' | wc -l))
|
||||
lines=$(expr 0 + $(diff "$1" "$2" | egrep '^[<>]' | egrep -v '(Date|InstanceID)' | wc -l))
|
||||
if [ "$lines" = "0" ]; then
|
||||
echo okay
|
||||
else
|
||||
diff -a -U 0 $1 $2
|
||||
diff -a -U 0 "$1" "$2"
|
||||
fi
|
||||
|
@ -1,8 +1,8 @@
|
||||
#!/bin/sh
|
||||
lines=$(expr + $(diff $1 $2 | egrep '^[<>]' | \
|
||||
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
|
||||
diff -a -U 0 "$1" "$2"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user