Skip to content

Commit

Permalink
Update Request-FileDownload.psm1 (#140)
Browse files Browse the repository at this point in the history
Had to dig deeper... 
If the the path "$(Get-TempScriptFolder)\downloads" is not existent. An has to be created, the script will fail. 
Cause of the error was a non-captured output in this function at corrected line.
  • Loading branch information
747DB66FBC authored Nov 24, 2023
1 parent cc8d3df commit 091a6bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/Request-FileDownload.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function Request-FileDownload {

If (!(Test-Path $OutputFolder)) {
Write-Status -Types "@" -Status "$OutputFolder doesn't exist, creating folder..."
New-Item -Path $OutputFolder -ItemType Directory -Force
$OutputFolder = New-Item -Path $OutputFolder -ItemType Directory -Force
}

$FileLocation = Join-Path -Path $OutputFolder -ChildPath $OutputFile
Expand Down

0 comments on commit 091a6bd

Please sign in to comment.