Skip to content

Commit

Permalink
Update Download_Latest_Sophia.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
farag2 authored Feb 3, 2025
1 parent d40e37f commit b4c9da1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Download_Latest_Sophia.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -143,14 +143,16 @@ switch ((Get-CimInstance -ClassName Win32_OperatingSystem).BuildNumber)
if (Test-Path -Path "$DownloadsFolder\SophiaScriptTemp")
{
Write-Verbose -Message "Please remove `"$DownloadsFolder\SophiaScriptTemp`" manually and try to use script again." -Verbose

Remove-Item -Path "$DownloadsFolder\master.zip" -Force

pause
exit
}

if (Test-Path -Path "$DownloadsFolder\$($Version)_Latest")
{
Write-Verbose -Message "Please remove `"$DownloadsFolder\$($Version)_Latest`" manually and try to use script again." -Verbose
Remove-Item -Path "$DownloadsFolder\master.zip" -Force

pause
exit
Expand Down

0 comments on commit b4c9da1

Please sign in to comment.