aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2000-03-25 18:46:17 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2000-03-25 18:46:17 +0000
commitc446802b22464e6fc6b594c2fe17504f50c70137 (patch)
tree5ea49ea19e79e9cbf580043ab029a459fb2a30e3
parent1aecb8d2ffc715db0f22b2bb9e7ccb765d3e47cb (diff)
downloadpostgresql-c446802b22464e6fc6b594c2fe17504f50c70137.tar.gz
postgresql-c446802b22464e6fc6b594c2fe17504f50c70137.zip
Fix syntax error reported by old shells ("if ! command..." is a
neologism, apparently).
-rw-r--r--src/bin/initdb/initdb.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bin/initdb/initdb.sh b/src/bin/initdb/initdb.sh
index 57db7803164..e0db622f7ef 100644
--- a/src/bin/initdb/initdb.sh
+++ b/src/bin/initdb/initdb.sh
@@ -26,7 +26,7 @@
#
#
# IDENTIFICATION
-# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.87 2000/03/25 14:32:50 momjian Exp $
+# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.88 2000/03/25 18:46:17 tgl Exp $
#
#-------------------------------------------------------------------------
@@ -282,7 +282,8 @@ fi
# The data path must be absolute, because the backend doesn't like
# '.' and '..' stuff. (Should perhaps be fixed there.)
-if ! echo "$PGDATA" | grep '^/' > /dev/null 2>&1
+echo "$PGDATA" | grep '^/' > /dev/null 2>&1
+if [ "$?" -ne 0 ]
then
echo "$CMDNAME: data path must be specified as an absolute path"
exit 1