Skip to content

Commit 2414400

Browse files
author
ttllonsaikrisv
committed
fixed grep for iOS real device
1 parent f2f04fb commit 2414400

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/thoughtworks/iOS/IOSManager.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ private JSONObject getDeviceInfo(String udid) throws InterruptedException, IOExc
5757
String name = cmd.runProcessCommandToGetDeviceID("idevicename --udid " + udid);
5858
String osVersion = cmd.runProcessCommandToGetDeviceID("ideviceinfo --udid "
5959
+ udid
60-
+ " | grep ProductVersion").replace("\n", "");
60+
+ " | grep ProductVersion").replace("ProductVersion:", "")
61+
.replace("\n","").trim();
6162

6263
iOSDevices.put("deviceModel",model);
6364
iOSDevices.put("udid",udid);

0 commit comments

Comments
 (0)