OpenFOAM-dev/etc/bashrc: Use 'pwd -P' to handle relative paths and links
Resolves bug-report http://bugs.openfoam.org/view.php?id=2223
This commit is contained in:
parent
5c32f339e3
commit
a874d8fae1
1 changed files with 1 additions and 1 deletions
|
|
@ -43,7 +43,7 @@ export WM_PROJECT_VERSION=4.x
|
|||
# Please set to the appropriate path if the default is not correct.
|
||||
#
|
||||
[ $BASH_SOURCE ] && \
|
||||
export FOAM_INST_DIR=${BASH_SOURCE%/*/*/*} || \
|
||||
export FOAM_INST_DIR=$(cd ${BASH_SOURCE%/*/*/*} && pwd -P) || \
|
||||
export FOAM_INST_DIR=$HOME/$WM_PROJECT
|
||||
# export FOAM_INST_DIR=~$WM_PROJECT
|
||||
# export FOAM_INST_DIR=/opt/$WM_PROJECT
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue