diff options
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/rabbitmq-env | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/rabbitmq-env b/scripts/rabbitmq-env index 7eb5545fd1..1b72c4d82c 100755 --- a/scripts/rabbitmq-env +++ b/scripts/rabbitmq-env @@ -15,6 +15,10 @@ ## Copyright (c) 2007-2014 GoPivotal, Inc. All rights reserved. ## +if [ "$RABBITMQ_ENV_LOADED" = 1 ]; then + return 0; +fi + if [ -z "$RABBITMQ_SCRIPTS_DIR" ]; then # We set +e here since since our test for "readlink -f" below needs to # be able to fail. @@ -115,5 +119,7 @@ DEFAULT_NODE_PORT=5672 ##--- End of overridden <var_name> variables +RABBITMQ_ENV_LOADED=1 + # Since we source this elsewhere, don't accidentally stop execution true |
