Fixed problem with postgres 8.0.x
[pspp-builds.git] / tests / command / get-data-psql.sh
index 7735c36b04e2138ad958413eb1ce767643cf573a..e47b5af7113275c4d26f0b9d2fa0115caf7570c3 100755 (executable)
@@ -22,7 +22,7 @@ export LANG
 port=6543
 dbase=pspptest
 PG_CONFIG=${PG_CONFIG:=pg_config}
-pgpath=`$PG_CONFIG | awk '/BINDIR/{print $3}'`
+pgpath=`$PG_CONFIG --bindir`
 
 cleanup()
 {