Skip to content

Commit

Permalink
Fix wait until sim booted variable expansion (#61)
Browse files Browse the repository at this point in the history
* Correctly retrieve udid variable

* Use correct indirect expansion

* This should be set to env_var_name not string
  • Loading branch information
BytesGuy authored Sep 12, 2023
1 parent a520c77 commit d1cadb5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/commands/wait-until-simulator-booted.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ description: Wait until the simulator has booted.
parameters:
device-udid-var:
description: The UDID of the device to wait for
type: string
type: env_var_name
default: MACOS_ORB_DEVICE_UDID
steps:
- run:
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/wait-until-sim-booted.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash

DEVICE_UDID=$(eval "echo $ORB_EVAL_DEVICE_UDID")
DEVICE_UDID="${!ORB_EVAL_DEVICE_UDID}"
xcrun simctl bootstatus "${DEVICE_UDID}"

0 comments on commit d1cadb5

Please sign in to comment.