fix save file path

This commit is contained in:
2025-06-30 00:07:07 -04:00
parent 0b049c8be5
commit 3afb032791

View File

@@ -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 {