Skip to content

Commit 28cfe22

Browse files
Don't use -e for a portion of rabbitmq-env that uses readlink
readlink exists with an error when its argument is not a symlink.
1 parent 4619ec0 commit 28cfe22

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/rabbitmq-env

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
## Copyright (c) 2007-2014 GoPivotal, Inc. All rights reserved.
1616
##
1717

18+
## readlink exits with an error if the given argument is
19+
## not a symlink
20+
set +e
1821
# Determine where this script is really located (if this script is
1922
# invoked from another script, this is the location of the caller)
2023
SCRIPT_PATH="$0"
@@ -31,6 +34,7 @@ while [ -h "$SCRIPT_PATH" ] ; do
3134
SCRIPT_PATH=$FULL_PATH
3235
fi
3336
done
37+
set -e
3438

3539
SCRIPT_DIR=`dirname $SCRIPT_PATH`
3640
RABBITMQ_HOME="${SCRIPT_DIR}/.."

0 commit comments

Comments
 (0)