Skip to content

Commit 51080c0

Browse files
author
Simon MacMullen
committed
More explanation.
1 parent 28cfe22 commit 51080c0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/rabbitmq-env

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,14 @@
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
18+
# We set +e here since since our test for "readlink -f" below needs to
19+
# be able to fail.
2020
set +e
2121
# Determine where this script is really located (if this script is
2222
# invoked from another script, this is the location of the caller)
2323
SCRIPT_PATH="$0"
2424
while [ -h "$SCRIPT_PATH" ] ; do
25+
# Determine if readlink -f is supported at all. TODO clean this up.
2526
FULL_PATH=`readlink -f $SCRIPT_PATH 2>/dev/null`
2627
if [ "$?" != "0" ]; then
2728
REL_PATH=`readlink $SCRIPT_PATH`

0 commit comments

Comments
 (0)