We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1aecb8d commit c446802Copy full SHA for c446802
src/bin/initdb/initdb.sh
@@ -26,7 +26,7 @@
26
#
27
28
# IDENTIFICATION
29
-# $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 $
30
31
#-------------------------------------------------------------------------
32
@@ -282,7 +282,8 @@ fi
282
# The data path must be absolute, because the backend doesn't like
283
# '.' and '..' stuff. (Should perhaps be fixed there.)
284
285
-if ! echo "$PGDATA" | grep '^/' > /dev/null 2>&1
+echo "$PGDATA" | grep '^/' > /dev/null 2>&1
286
+if [ "$?" -ne 0 ]
287
then
288
echo "$CMDNAME: data path must be specified as an absolute path"
289
exit 1
0 commit comments