Skip to content

Commit

Permalink
Update appium-install.ps1 (#22883)
Browse files Browse the repository at this point in the history
  • Loading branch information
jfversluis authored Jun 7, 2024
1 parent 4e12cee commit 93a1bc4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions eng/scripts/appium-install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,11 @@ if (!(Test-Path $logsDir -PathType Container)) {
$AppiumHome = $env:APPIUM_HOME
Write-Output "APPIUM_HOME: $AppiumHome"

if (Test-Path $AppiumHome) {
Write-Output "Removing existing APPIUM_HOME Cache..."
Remove-Item -Path $AppiumHome -Recurse -Force
if ($AppiumHome) {
if (Test-Path $AppiumHome) {
Write-Output "Removing existing APPIUM_HOME Cache..."
Remove-Item -Path $AppiumHome -Recurse -Force
}
}

# Create the directory for appium home
Expand Down

0 comments on commit 93a1bc4

Please sign in to comment.