Skip to content

Commit 42b6922

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 eb1525e commit 42b6922

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

contrib/pg_upgrade/test.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,10 +217,11 @@ case $testhost in
217217
*) sh ./delete_old_cluster.sh ;;
218218
esac
219219

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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy