[31917] branches/release_1_6/base/portmgr/dmg/postflight

jmpp at macports.org jmpp at macports.org
Tue Dec 11 15:26:26 PST 2007


Revision: 31917
          http://trac.macosforge.org/projects/macports/changeset/31917
Author:   jmpp at macports.org
Date:     2007-12-11 15:26:23 -0800 (Tue, 11 Dec 2007)

Log Message:
-----------
Pull the output redirection out of the -c command passed to the shell, so that it doesn't become a syntax error if we're running tcsh.

Modified Paths:
--------------
    branches/release_1_6/base/portmgr/dmg/postflight

Modified: branches/release_1_6/base/portmgr/dmg/postflight
===================================================================
--- branches/release_1_6/base/portmgr/dmg/postflight	2007-12-11 23:08:16 UTC (rev 31916)
+++ branches/release_1_6/base/portmgr/dmg/postflight	2007-12-11 23:26:23 UTC (rev 31917)
@@ -102,7 +102,7 @@
 # We gather the path into a variable of our own for quicker operation:
 ORIGINAL_MANPATH="$($SHELL $LOGIN_FLAG -c "/usr/bin/printenv MANPATH")"
 # Adding out setting to the MANPATH variable only if it exists and, following that:
-if ! $SHELL $LOGIN_FLAG -c "/usr/bin/env | grep MANPATH > /dev/null 2>&1" || \
+if ! $SHELL $LOGIN_FLAG -c "/usr/bin/env | grep MANPATH" > /dev/null 2>&1 || \
 # if it doesn't already contain our path:
   echo "$ORIGINAL_MANPATH" | grep $MANPAGES > /dev/null 2>&1 || \
 # if there's no empty component somewhere in the middle of it:

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071211/36d2a930/attachment.html


More information about the macports-changes mailing list