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

jmpp at macports.org jmpp at macports.org
Tue Jan 15 08:16:33 PST 2008


Revision: 32969
          http://trac.macosforge.org/projects/macports/changeset/32969
Author:   jmpp at macports.org
Date:     2008-01-15 08:16:31 -0800 (Tue, 15 Jan 2008)

Log Message:
-----------

Chown to the corresponging user *after* all writes to the shell configuration file, d'uh!

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	2008-01-15 16:14:19 UTC (rev 32968)
+++ branches/release_1_6/base/portmgr/dmg/postflight	2008-01-15 16:16:31 UTC (rev 32969)
@@ -82,8 +82,8 @@
             ;;
     esac
     echo "${ENV_COMMAND} ${1}${ASSIGN}${NEW_SETTING}" >> ${HOME}/.${CONF_FILE}
+    echo -e "# Finished adapting your ${1} environment variable for use with MacPorts.\n" >> ${HOME}/.${CONF_FILE}
     chown ${USER} ${HOME}/.${CONF_FILE} || echo "Warning: unable to adapt permissions on your ${HOME}/.${CONF_FILE} shell configuration file!"
-    echo -e "# Finished adapting your ${1} environment variable for use with MacPorts.\n" >> ${HOME}/.${CONF_FILE}
     echo "An appropriate ${1} variable has been added to your shell environment by the MacPorts installer."
 }
 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080115/9f555b5e/attachment.html


More information about the macports-changes mailing list