We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28cfe22 commit 51080c0Copy full SHA for 51080c0
scripts/rabbitmq-env
@@ -15,13 +15,14 @@
15
## Copyright (c) 2007-2014 GoPivotal, Inc. All rights reserved.
16
##
17
18
-## readlink exits with an error if the given argument is
19
-## not a symlink
+# We set +e here since since our test for "readlink -f" below needs to
+# be able to fail.
20
set +e
21
# Determine where this script is really located (if this script is
22
# invoked from another script, this is the location of the caller)
23
SCRIPT_PATH="$0"
24
while [ -h "$SCRIPT_PATH" ] ; do
25
+ # Determine if readlink -f is supported at all. TODO clean this up.
26
FULL_PATH=`readlink -f $SCRIPT_PATH 2>/dev/null`
27
if [ "$?" != "0" ]; then
28
REL_PATH=`readlink $SCRIPT_PATH`
0 commit comments