Skip to content

Commit

Permalink
Fix: assign the Destination variable globally
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmedKamal1432 committed Oct 27, 2021
1 parent c499dd3 commit d47dbd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Helper/helper.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ function csv_output_directories {
[string] $Logs_Path
)
##Create Results Directory
$Destination_Path = Join-Path -Path $Logs_Path -ChildPath "Results"
$global:Destination_Path = Join-Path -Path $Logs_Path -ChildPath "Results"
if ((Test-Path -Path "$Destination_Path") -eq $false) {
New-Item -Path $Destination_Path -ItemType Directory
}
Expand Down

0 comments on commit d47dbd3

Please sign in to comment.