Skip to content

Commit

Permalink
Update D2Loader.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
shupershuff authored Sep 8, 2023
1 parent 4359670 commit 58eb899
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions D2Loader.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ if ($CurrentStats.LastUpdateCheck -lt (Get-Date).addHours(-8).ToString('yyyy.MM.
}
} Until ($UpdateResponseValid -eq $True)
if ($ShouldUpdate -eq "y" -or $ShouldUpdate -eq "yes"){#if user wants to update script, download .zip of latest release, extract to temporary folder and replace old D2Loader.ps1 with new D2Loader.ps1
Write-Host
Write-Host " Updating... :)" -foregroundcolor green
New-Item -ItemType Directory -Path ($Script:WorkingDirectory + "\UpdateTemp\") | Out-Null #create temporary folder to download zip to and extract
$ZipURL = $ReleaseInfo.zipball_url #get zip download URL
Expand Down

0 comments on commit 58eb899

Please sign in to comment.