diff options
author | Noah Misch <noah@leadboat.com> | 2015-07-08 20:44:21 -0400 |
---|---|---|
committer | Noah Misch <noah@leadboat.com> | 2015-07-08 20:44:27 -0400 |
commit | f7b3300384c1f726e4c1fe34ecec409826c2cdef (patch) | |
tree | b1d2ba1b815326deec13b08d34209c1e24166c78 /contrib | |
parent | 458ccbf2b3a9a8566a405368825954cf99b8dbef (diff) |
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.
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/pg_upgrade/test.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/pg_upgrade/test.sh b/contrib/pg_upgrade/test.sh index 905729028fa..f52e3f5ae6d 100644 --- a/contrib/pg_upgrade/test.sh +++ b/contrib/pg_upgrade/test.sh @@ -193,10 +193,11 @@ case $testhost in *) sh ./delete_old_cluster.sh ;; esac -if diff -q "$temp_root"/dump1.sql "$temp_root"/dump2.sql; then +if diff "$temp_root"/dump1.sql "$temp_root"/dump2.sql >/dev/null; then echo PASSED exit 0 else + echo "Files $temp_root/dump1.sql and $temp_root/dump2.sql differ" echo "dumps were not identical" exit 1 fi |