Paste number 62957: patch for postflight

Paste number 62957: patch for postflight
Pasted by: blbmp
When:3 years, 10 months ago
Share:Tweet this! | http://paste.lisp.org/+1CKT
Channel:#macports
Paste contents:
Raw Source | XML | Display As
--- postflight-1.6.orig	2008-06-28 17:27:20.000000000 -0600
+++ postflight-1.6	2008-06-28 17:47:42.000000000 -0600
@@ -102,7 +102,13 @@
         LOGIN_FLAG="-l"
         ENV_COMMAND="export"
         ASSIGN="="
-        CONF_FILE=profile
+        if [ -f ${HOME}/.bash_profile ]; then
+            CONF_FILE=bash_profile
+        elif [ -f ${HOME}/.bash_login ]; then
+            CONF_FILE=bash_login
+        else
+            CONF_FILE=profile
+        fi
         ;;
     *)
         echo "Unknown shell ($USHELL)! Please set your MacPorts compatible environment manually."

This paste has no annotations.

Colorize as:
Show Line Numbers

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.