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 26
26
#
27
27
#
28
28
# IDENTIFICATION
29
- # $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.16 1996/11/25 05:51:50 bryanh Exp $
29
+ # $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.17 1996/11/26 08:12:39 bryanh Exp $
30
30
#
31
31
# -------------------------------------------------------------------------
32
32
@@ -48,11 +48,13 @@ CMDNAME=`basename $0`
48
48
# specify the pglib option. Postconfig may validly not exist, in which case
49
49
# our invocation of it silently fails.
50
50
51
- # The x=x below is to satisfy export if postconfig returns nothing.
52
51
# The 2>/dev/null is to swallow the "postconfig: not found" message if there
53
- # is not postconfig, but it is ineffective in some shells. Better ideas?
52
+ # is no postconfig.
54
53
55
- export x=x $( postconfig 2> /dev/null)
54
+ postconfig_result=" $( sh -c postconfig 2> /dev/null) "
55
+ if [ ! -z $postconfig_result ]; then
56
+ export $postconfig_result
57
+ fi
56
58
57
59
# Set defaults:
58
60
debug=0
You can’t perform that action at this time.
0 commit comments