Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
DexterDreeeam committed Mar 2, 2023
1 parent 55e34bb commit bcc10f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions agent/one-line-installer-windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ $Arch = $null
# =======================================
# Functions
# =======================================
Function Get-File ($Url, $Path)
Function Get-File ($Url, $Path, $ExtractCurrent=$false)
{
$fileName = $Url.Substring($Url.LastIndexOf('/') + 1)
if ($Path.EndsWith('/') -or $Path.EndsWith('\'))
Expand Down Expand Up @@ -208,7 +208,7 @@ foreach ($ast in $release.assets)
{
if ($filesToDownload -contains $ast.name)
{
Get-File -Url $ast.browser_download_url -Path $RootPath
Get-File -Url $ast.browser_download_url -Path $RootPath -ExtractCurrent $true
}
}

Expand Down

0 comments on commit bcc10f3

Please sign in to comment.