Skip to content

Commit 5b5ae78

Browse files
committed
another regex
1 parent 943c738 commit 5b5ae78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/ios.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
file_to_build=`echo $file_to_build | awk '{$1=$1;print}'`
3030
3131
# Find first available simulator
32-
device_name=$(xcrun simctl list devices available | grep "iPhone" | head -n 1 | sed -E 's/^[[:space:]]*(.+) \\(.+\\) \\(.+\\)$/\1/')
32+
device_name=$(xcrun simctl list devices available | grep "iPhone" | head -n 1 | sed -E 's/^[[:space:]]*([^()]+)[[:space:]]*\(.*$/\1/' | awk '{$1=$1; print}')
3333
3434
if [ -z "$device_name" ]; then
3535
echo "❌ Failed to find a valid iOS device."

0 commit comments

Comments
 (0)