File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 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 should apease users who are confused by the above behaviour.
94
+ # This should appease users who are confused by the above behaviour.
95
95
#
96
96
97
- if ! echo " $Location " | grep -s ' /' > /dev/null 2>&1 && [ ! -d " $Location " ]; then
97
+ echo " $Location " | grep ' /' > /dev/null 2>&1
98
+
99
+ if [ " $? " -ne 0 -a ! -d " $Location " ]; then
98
100
PGALTDATA=` printenv $Location 2> /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
You can’t perform that action at this time.
0 commit comments