summaryrefslogtreecommitdiff
path: root/scripts/rabbitmq-service.bat
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@lshift.net>2009-10-29 09:49:05 +0000
committerMatthias Radestock <matthias@lshift.net>2009-10-29 09:49:05 +0000
commitc41b387fef3148b44c3687317cb99663a3f8577f (patch)
treecb3d3e78892ac13d70a98d1cf3a2d9b1be856768 /scripts/rabbitmq-service.bat
parent1291cc279c5cbddc499c762fe46142fb3c885560 (diff)
downloadrabbitmq-server-c41b387fef3148b44c3687317cb99663a3f8577f.tar.gz
prevent vars from escaping the script and polluting the env
also some minor cosmetic changes
Diffstat (limited to 'scripts/rabbitmq-service.bat')
-rwxr-xr-xscripts/rabbitmq-service.bat4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/rabbitmq-service.bat b/scripts/rabbitmq-service.bat
index bdfc22c0..7b911cbd 100755
--- a/scripts/rabbitmq-service.bat
+++ b/scripts/rabbitmq-service.bat
@@ -30,6 +30,8 @@ REM
REM Contributor(s): ______________________________________.
REM
+setlocal
+
if "%RABBITMQ_SERVICENAME%"=="" (
set RABBITMQ_SERVICENAME=RabbitMQ
)
@@ -200,3 +202,5 @@ goto END
:END
+
+endlocal