diff options
| author | Simon MacMullen <simon@rabbitmq.com> | 2014-06-23 16:54:49 +0100 |
|---|---|---|
| committer | Simon MacMullen <simon@rabbitmq.com> | 2014-06-23 16:54:49 +0100 |
| commit | 51080c0d3e881bc8597e4966d28501447bd3f355 (patch) | |
| tree | 72fa535d4d04d6274f63fb46e487f0910702d51f /scripts | |
| parent | 28cfe22305371f4355cd88c6d930e236bf4b06e2 (diff) | |
| download | rabbitmq-server-git-51080c0d3e881bc8597e4966d28501447bd3f355.tar.gz | |
More explanation.
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/rabbitmq-env | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/rabbitmq-env b/scripts/rabbitmq-env index b7eff42181..69d5a9c9d0 100755 --- a/scripts/rabbitmq-env +++ b/scripts/rabbitmq-env @@ -15,13 +15,14 @@ ## Copyright (c) 2007-2014 GoPivotal, Inc. All rights reserved. ## -## readlink exits with an error if the given argument is -## not a symlink +# We set +e here since since our test for "readlink -f" below needs to +# be able to fail. set +e # Determine where this script is really located (if this script is # invoked from another script, this is the location of the caller) SCRIPT_PATH="$0" while [ -h "$SCRIPT_PATH" ] ; do + # Determine if readlink -f is supported at all. TODO clean this up. FULL_PATH=`readlink -f $SCRIPT_PATH 2>/dev/null` if [ "$?" != "0" ]; then REL_PATH=`readlink $SCRIPT_PATH` |
