From 3afb0327912d7d708e41ee972c4c31b5333289f2 Mon Sep 17 00:00:00 2001 From: Stephan Yelle Date: Mon, 30 Jun 2025 00:07:07 -0400 Subject: [PATCH] fix save file path --- StackMonkey.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/StackMonkey.ps1 b/StackMonkey.ps1 index 14821d5..f7bfa34 100644 --- a/StackMonkey.ps1 +++ b/StackMonkey.ps1 @@ -1378,12 +1378,12 @@ $script $ext = [IO.Path]::GetExtension($OutputFile).ToLower() if ($ext -eq '.json') { - $sites | ConvertTo-Json -Depth 3 | Out-File -FilePath $OutputFile -Encoding UTF8 + $sites | ConvertTo-Json -Depth 3 | Out-File -FilePath $filePath -Encoding UTF8 } else { - $sites | Export-Csv -Path $OutputFile -NoTypeInformation -Encoding UTF8 + $sites | Export-Csv -Path $filePath -NoTypeInformation -Encoding UTF8 } - Write-LogHybrid "Wrote $($sites.Count) sites to $OutputFile" Success DattoAuth + Write-LogHybrid "Wrote $($sites.Count) sites to $filePath" Success DattoAuth # Open the folder containing the file Start-Process explorer.exe /select,"$filePath" } else {