Skip to content

Commit

Permalink
Enhance script
Browse files Browse the repository at this point in the history
  • Loading branch information
dungwinux committed Apr 20, 2019
1 parent ecb2925 commit ae33b0e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hestia.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ $asset_url = $get_res.assets[0].browser_download_url
Invoke-WebRequest $asset_url -Out $asset_name

Write-Host Extracting latest release...
if (-Not (Test-Path -Path .\public)) {
if (Test-Path -Path .\public) {
Remove-Item -path .\public -Recurse -Force
}
Expand-Archive $asset_name -DestinationPath .\public
Remove-Item $asset_name

Write-Host Successfully installed Hestia
Move-Item -Path .\public\build\* -Destination .\public
Remove-Item .\public\build
Remove-Item $asset_name

0 comments on commit ae33b0e

Please sign in to comment.