Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit c446802

Browse files
committed
Fix syntax error reported by old shells ("if ! command..." is a
neologism, apparently).
1 parent 1aecb8d commit c446802

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/bin/initdb/initdb.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#
2727
#
2828
# IDENTIFICATION
29-
# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.87 2000/03/25 14:32:50 momjian Exp $
29+
# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.88 2000/03/25 18:46:17 tgl Exp $
3030
#
3131
#-------------------------------------------------------------------------
3232

@@ -282,7 +282,8 @@ fi
282282
# The data path must be absolute, because the backend doesn't like
283283
# '.' and '..' stuff. (Should perhaps be fixed there.)
284284

285-
if ! echo "$PGDATA" | grep '^/' > /dev/null 2>&1
285+
echo "$PGDATA" | grep '^/' > /dev/null 2>&1
286+
if [ "$?" -ne 0 ]
286287
then
287288
echo "$CMDNAME: data path must be specified as an absolute path"
288289
exit 1

0 commit comments

Comments
 (0)