|
8 | 8 | #
|
9 | 9 | #
|
10 | 10 | # IDENTIFICATION
|
11 |
| -# $Header: /cvsroot/pgsql/src/bin/initlocation/Attic/initlocation.sh,v 1.5 2000/01/19 20:08:25 petere Exp $ |
| 11 | +# $Header: /cvsroot/pgsql/src/bin/initlocation/Attic/initlocation.sh,v 1.6 2000/03/25 19:01:48 tgl Exp $ |
12 | 12 | #
|
13 | 13 | #-------------------------------------------------------------------------
|
14 | 14 |
|
|
91 | 91 | # You can call initlocation $ENVAR, which will of course be resolved
|
92 | 92 | # by the shell, or initlocation some/path (containing at least one slash).
|
93 | 93 | # Then you just take that path.
|
94 |
| -# This shouldapease users who are confused by the above behaviour. |
| 94 | +# This shouldappease users who are confused by the above behaviour. |
95 | 95 | #
|
96 | 96 |
|
97 |
| -if!echo"$Location"| grep -s'/'>/dev/null2>&1&& [!-d"$Location" ];then |
| 97 | +echo"$Location"| grep'/'>/dev/null2>&1 |
| 98 | + |
| 99 | +if ["$?"-ne 0-a!-d"$Location" ];then |
98 | 100 | PGALTDATA=`printenv$Location2> /dev/null`
|
99 | 101 | if [-z"$PGALTDATA" ];then
|
100 |
| -echo"$CMDNAME: environment variable$PGALTDATA not set" |
| 102 | +echo"$CMDNAME: environment variable$Location not set" |
101 | 103 | exit 1
|
102 | 104 | fi
|
103 | 105 | haveenv=t
|
|