From: Tom Lane Date: Sat, 25 Mar 2000 18:46:17 +0000 (+0000) Subject: Fix syntax error reported by old shells ("if ! command..." is a X-Git-Tag: REL9_0_0~23655 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=c446802b22464e6fc6b594c2fe17504f50c70137;p=pg-rex%2Fsyncrep.git Fix syntax error reported by old shells ("if ! command..." is a neologism, apparently). --- diff --git a/src/bin/initdb/initdb.sh b/src/bin/initdb/initdb.sh index 57db780316..e0db622f7e 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