Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions portmgr/dmg/postflight.in
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,11 @@ function write_setting () {
update_macports
exit 1
}
echo -e "\n##\n# Your previous ${HOME}/.${CONF_FILE} file was backed up as ${HOME}/.${CONF_FILE}.${BACKUP_SUFFIX}\n##" >> "${HOME}/.${CONF_FILE}"
echo -e "\n### Your previous ${HOME}/.${CONF_FILE} file was backed up as ${HOME}/.${CONF_FILE}.${BACKUP_SUFFIX}" >> "${HOME}/.${CONF_FILE}"
fi
{
echo -e "\n# ${OUR_STRING}: adding an appropriate ${1} variable for use with MacPorts."
echo -e "# ${OUR_STRING}: adding an appropriate ${1} variable for use with MacPorts."
echo "${ENV_COMMAND} ${1}${ASSIGN}${2}"
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 "An appropriate ${1} variable has been added to your shell environment by the MacPorts installer."
Expand Down