Skip to content

Commit

Permalink
Use -z?
Browse files Browse the repository at this point in the history
  • Loading branch information
clarmso committed Dec 19, 2024
1 parent ba974a3 commit d3059e8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/focus-ios-ui-tests-previous-os.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,11 @@ jobs:
- name: Create iOS ${{ matrix.ios_version }} simulator
id: setup-simulator
run: |
xcrun simctl list runtimes
xcrun simctl list runtimes | grep "${{ matrix.ios_version }}"
output=$(xcrun simctl list runtimes | grep "${{ matrix.ios_version }}")
echo $output
if [ -n "$output" ]; then
echo "output: '$output'"
if [ -z "$output" ]; then
echo "iOS ${{ matrix.ios_version }} simulator has already been installed"
else
echo "Install iOS ${{ matrix.ios_version }} runtime"
Expand Down

0 comments on commit d3059e8

Please sign in to comment.