Skip to content

Commit

Permalink
Make OS check case-insensitive for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Simonsen committed Dec 9, 2013
1 parent 84d0312 commit 01bfc63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/redis/embedded/RedisServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public static String getRedisRunScript() {
String osName = System.getProperty("os.name");
String osArch = System.getProperty("os.arch");

if (osName.indexOf("win") >= 0) {
if (osName.toLowerCase().indexOf("win") >= 0) {
if (osArch.indexOf("64") >= 0) {
return WINDOWS_64.runScript;
} else {
Expand Down

0 comments on commit 01bfc63

Please sign in to comment.