Skip to content

Commit b28244a

Browse files
committed
Replace use of "diff -q".
POSIX does not specify the -q option, and many implementations do not offer it. Don't bother changing the MSVC build system, because having non-GNU diff on Windows is vanishingly unlikely. Back-patch to 9.2, where this invocation was introduced.
1 parent e135c3d commit b28244a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bin/pg_upgrade/test.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,11 @@ case $testhost in
216216
*) sh ./delete_old_cluster.sh ;;
217217
esac
218218

219-
if diff -q "$temp_root"/dump1.sql "$temp_root"/dump2.sql; then
219+
if diff "$temp_root"/dump1.sql "$temp_root"/dump2.sql >/dev/null; then
220220
echo PASSED
221221
exit 0
222222
else
223+
echo "Files $temp_root/dump1.sql and $temp_root/dump2.sql differ"
223224
echo "dumps were not identical"
224225
exit 1
225226
fi

0 commit comments

Comments
 (0)