Changeset 33639
- Timestamp:
- 02/01/2008 23:16:35 (4 years ago)
- Files:
-
- 1 modified
-
branches/release_1_6/base/portmgr/dmg/postflight (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/release_1_6/base/portmgr/dmg/postflight
r33592 r33639 85 85 # Determine the user's shell, in order to choose an appropriate configuration file we'll be tweaking. 86 86 # Exit nicely if the shell is any other than bash or tcsh, as that's considered non-standard. 87 USHELL= "$(basename "${SHELL}")"|| {87 USHELL=$(dscl . -read /users/${USER} shell | awk -F'/' '{print $NF}') || { 88 88 echo "An attempt to determine your shell name failed! Please set your MacPorts compatible environment manually." 89 89 update_macports … … 92 92 case "${USHELL}" in 93 93 tcsh) 94 echo "Detected the tcsh shell." 94 95 LOGIN_FLAG="" 95 96 ENV_COMMAND="setenv" … … 98 99 ;; 99 100 bash) 101 echo "Detected the bash shell." 100 102 LOGIN_FLAG="-l" 101 103 ENV_COMMAND="export" … … 104 106 ;; 105 107 *) 106 echo "Unknown shell ! Please set your MacPorts compatible environment manually."108 echo "Unknown shell ($USHELL)! Please set your MacPorts compatible environment manually." 107 109 update_macports 108 110 exit 0

