Pārlūkot izejas kodu

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.
pull/3/head
olgeni pirms 12 gadiem
vecāks
revīzija
505458eecb
4 mainītis faili ar 4 papildinājumiem un 4 dzēšanām
  1. +1
    -1
      priv/templates/simplenode.erl.script
  2. +1
    -1
      priv/templates/simplenode.runner
  3. +1
    -1
      test/upgrade_project/rel/files/dummy
  4. +1
    -1
      test/upgrade_project/rel/files/erl

+ 1
- 1
priv/templates/simplenode.erl.script Parādīt failu

@ -20,7 +20,7 @@ unset POSIX_SHELL
## start_clean.boot 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

+ 1
- 1
priv/templates/simplenode.runner Parādīt failu

@ -15,7 +15,7 @@ fi
# clear it so if we invoke other scripts, they run as ksh
unset POSIX_SHELL
RUNNER_SCRIPT_DIR=$(cd ${0%/*} && pwd)
RUNNER_SCRIPT_DIR=$(cd ${0%/*} && pwd -P)
CALLER_DIR=$PWD

+ 1
- 1
test/upgrade_project/rel/files/dummy Parādīt failu

@ -2,7 +2,7 @@
# -*- tab-width:4;indent-tabs-mode:nil -*-
# ex: ts=4 sw=4 et
RUNNER_SCRIPT_DIR=$(cd ${0%/*} && pwd)
RUNNER_SCRIPT_DIR=$(cd ${0%/*} && pwd -P)
RUNNER_BASE_DIR=${RUNNER_SCRIPT_DIR%/*}
RUNNER_ETC_DIR=$RUNNER_BASE_DIR/etc

+ 1
- 1
test/upgrade_project/rel/files/erl Parādīt failu

@ -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

Notiek ielāde…
Atcelt
Saglabāt