diff --git a/Scripts/clean-up-old-test-simulators.sh b/Scripts/clean-up-old-test-simulators.sh index 8b4560254..66f5e0e3e 100755 --- a/Scripts/clean-up-old-test-simulators.sh +++ b/Scripts/clean-up-old-test-simulators.sh @@ -5,6 +5,13 @@ dir="$HOME/Library/Developer/CoreSimulator/Devices" +# The $HOME directory for a drone pipeline won't be the directory the simulators are stored in so +# check if it exists and if not, fallback to a hard-coded directory +if [[ ! -d $dir ]]; then + dir="/Users/drone/Library/Developer/CoreSimulator/Devices" + ls $dir +fi + # Plist file plist="${dir}/device_set.plist"