diff options
author | olgeni <olgeni@olgeni.com> | 2013-06-10 22:15:49 +0200 |
---|---|---|
committer | olgeni <olgeni@olgeni.com> | 2013-06-10 22:15:49 +0200 |
commit | 505458eecb78f90e6c266cbaec9244e88d8c3f1e (patch) | |
tree | ebaa2db19a3c16675d5586501a72c855a62e5301 /test/upgrade_project/rel/files/erl | |
parent | 638569acc2a2947e0e2d8d159b1f8ff9e261a551 (diff) |
Use "pwd -P" to get the current physical path.
It is a portable version of the realpath(1) utility that you can find on
Mac OS X and FreeBSD (see also The Open Group Base Specifications Issue
6, IEEE Std 1003.1).
Without the -P flag, pwd(1) might return different values when the
current path contains one or more symlinks, depending on how you got
into the current directory.
In simplenode.runner, this may cause PIPE_DIR to have different values
on each use, which will make it impossible to connect to the running
node unless you guess the correct path yourself.
Diffstat (limited to 'test/upgrade_project/rel/files/erl')
-rwxr-xr-x | test/upgrade_project/rel/files/erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/upgrade_project/rel/files/erl b/test/upgrade_project/rel/files/erl index 6f65e3f..4c1a4f7 100755 --- a/test/upgrade_project/rel/files/erl +++ b/test/upgrade_project/rel/files/erl @@ -10,7 +10,7 @@ ## file available in $ROOTDIR/release/VSN. # Determine the abspath of where this script is executing from. -ERTS_BIN_DIR=$(cd ${0%/*} && pwd) +ERTS_BIN_DIR=$(cd ${0%/*} && pwd -P) # Now determine the root directory -- this script runs from erts-VSN/bin, # so we simply need to strip off two dirs from the end of the ERTS_BIN_DIR |