fix linux command
This commit is contained in:
@@ -58,9 +58,11 @@ public class CreateDiffPatchFile {
|
||||
String command;
|
||||
if (os.contains("win")) {
|
||||
command = "bsdiff" + File.separator + "win" + File.separator + "bsdiff.exe";
|
||||
} else if (os.contains("nix") || os.contains("mac")) {
|
||||
} else if (os.contains("linux") ) {
|
||||
command = "bsdiff" + File.separator + "linux" + File.separator + "bsdiff";
|
||||
} else {
|
||||
}else if ( os.contains("mac")) {
|
||||
command = "bsdiff" + File.separator + "mac" + File.separator + "bsdiff";
|
||||
} else {
|
||||
throw new UnsupportedOperationException("Unsupported OS");
|
||||
}
|
||||
File file = new File(command);
|
||||
|
||||
Reference in New Issue
Block a user