]> granicus.if.org Git - postgresql/commitdiff
Allow MSYS as well as MINGW in Msys uname
authorAndrew Dunstan <andrew@dunslane.net>
Fri, 4 May 2018 18:54:04 +0000 (14:54 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Fri, 4 May 2018 19:03:38 +0000 (15:03 -0400)
Msys2's uname -s outputs a string beginning MSYS rather than MINGW as is
output by Msys. Allow either in pg_upgrade's test.sh.

Backpatch to all live branches.

src/bin/pg_upgrade/test.sh

index bb414199241e80221449ed89df18b5f389e13513..4232a753bca98aa1f18d27bd0f56d676dd0d7b51 100644 (file)
@@ -32,7 +32,7 @@ standard_initdb() {
 testhost=`uname -s`
 
 case $testhost in
-       MINGW*)
+       MINGW*|MSYS*)
                LISTEN_ADDRESSES="localhost"
                PGHOST=localhost
                ;;