From 6fea6ca66e617546dc1743295f1efb35dba45175 Mon Sep 17 00:00:00 2001 From: Andy Taylor Date: Wed, 6 May 2015 11:04:02 +0100 Subject: [PATCH] small CLI CREATE fix --- .../java/org/apache/activemq/artemis/cli/commands/Create.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/Create.java b/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/Create.java index 9eaf4daf0c..074ced08e0 100644 --- a/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/Create.java +++ b/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/Create.java @@ -121,7 +121,7 @@ public class Create implements Action this.context = context; scanner = new Scanner(System.in); IS_WINDOWS = System.getProperty("os.name").toLowerCase().trim().startsWith("win"); - IS_CYGWIN = IS_WINDOWS && System.getenv("OSTYPE") == "cygwin"; + IS_CYGWIN = IS_WINDOWS && "cygwin".equals(System.getenv("OSTYPE")); context.out.println(String.format("Creating ActiveMQ Artemis instance at: %s", directory.getCanonicalPath())); if (host == null)