Skip to content

Commit

Permalink
Use -Force on Expand-Archive (#116)
Browse files Browse the repository at this point in the history
File cleanup is not complete for bleeding edge. `-Force` overwrites any files that don't get deleted, which is cleaner than just constantly expanding the files to remove.
  • Loading branch information
GriffinG1 authored Jan 2, 2022
1 parent 356c8a4 commit 4f29bc8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions setup_bleedingedge.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Remove-Item QRCoder.dll -ErrorAction Ignore

# Extract pkhex
Write-Host Extracting PKHeX ...
Expand-Archive -Path PKHeX.zip -DestinationPath $pwd
Expand-Archive -Path PKHeX.zip -DestinationPath $pwd -Force

# Delete zip file
Write-Host Deleting PKHeX.zip ...
Expand All @@ -78,11 +78,11 @@ Remove-Item PKHeX.zip
dir PKHeX-Plugins*.zip | Unblock-File
New-Item -ItemType Directory -Force -Path plugins | Out-Null
Write-Host Extracting Plugins ...
Expand-Archive -Path PKHeX-Plugins*.zip -DestinationPath $pwd
Expand-Archive -Path PKHeX-Plugins*.zip -DestinationPath $pwd -Force
Move-Item -Path PKHeX-Plugins\*.dll -Destination plugins -Force
Write-Host Deleting Plugins ...
Remove-Item PKHeX-Plugins -Recurse
Remove-Item PKHeX-Plugins*.zip

#Finish up script
Read-Host -Prompt "Press Enter to exit"
Read-Host -Prompt "Press Enter to exit"

0 comments on commit 4f29bc8

Please sign in to comment.