Skip to content

Commit

Permalink
refactor: 优化文件名判断
Browse files Browse the repository at this point in the history
  • Loading branch information
zhou-hao committed Jun 25, 2024
1 parent a5bdb7e commit 4a3918a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@ private static String install(String file, String workdir) {
StandardOpenOption.WRITE)) {
StreamUtils.copy(zip, output);
}

if (filename.endsWith("MediaServer") ||
String _fileName=copyToFile.getName();
if (_fileName.equals("MediaServer") ||
//windows
filename.endsWith("MediaServer.exe")) {
_fileName.equals("MediaServer.exe")) {
mediaServer = copyTo.toString();
}
// chmod +x MediaServer
Expand Down

0 comments on commit 4a3918a

Please sign in to comment.