Skip to content

Commit

Permalink
Merge pull request ozimov#9 from SeanSimonsen/master
Browse files Browse the repository at this point in the history
Make OS check case-insensitive for Windows
  • Loading branch information
kstyrc committed Jan 30, 2014
2 parents 84d0312 + 01bfc63 commit c7c4a4b
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 c7c4a4b

Please sign in to comment.