Skip to content

Commit

Permalink
fix: ios udid list
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhouYixun committed Dec 11, 2022
1 parent 232453b commit 6dfcd87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ public static List<String> getDeviceList() {
String commandLine = "%s devices";
List<String> data = ProcessCommandTool.getProcessLocalCommand(String.format(commandLine, sib));
for (String a : data) {
if (a.length() == 0) {
if (a.length() == 0 || a.contains("no device")) {
break;
}
if (a.contains(" ")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public void run() {
}

List<String> deviceList = SibTool.getDeviceList();
if (CollectionUtils.isEmpty(deviceList)) {
if (deviceList.size() == 0) {
return;
}

Expand Down

0 comments on commit 6dfcd87

Please sign in to comment.