From a051c3654e41078aba7f39b527d07f3e8c8dbb83 Mon Sep 17 00:00:00 2001 From: John Gaunt Date: Wed, 24 Nov 2021 10:42:08 -0500 Subject: [PATCH] added new lines after bw commands --- backupBitwarden.ps1 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/backupBitwarden.ps1 b/backupBitwarden.ps1 index 4e9a9d1..d0d88f5 100644 --- a/backupBitwarden.ps1 +++ b/backupBitwarden.ps1 @@ -23,8 +23,12 @@ if ($sessionKey -eq $null) { Write-Host "Exporting vault to both CSV and JSON files." Write-Verbose "Exporting vault to CSV." bw export $password --output "$PSScriptRoot\Bitwarden User $username Export $dateTime.csv" --format csv --session $sessionKey +# just writing a new line +Write-Host " " Write-Verbose "Exporting vault to JSON." bw export $password --output "$PSScriptRoot\Bitwarden User $username Export $dateTime.json" --format json --session $sessionKey +# just writing a new line +Write-Host " " Write-Host "Looking for Organizations..." $organizations = $(ConvertFrom-Json $(bw list organizations --session $sessionKey)) @@ -34,8 +38,12 @@ $organizations | foreach { Write-Host "Exporting organization $($_.name) vault to both CSV and JSON files." Write-Verbose "Exporting organization vault to CSV." bw export $password --organizationid $_.id --output "$PSScriptRoot\Bitwarden Organization $($_.name) Export $dateTime.csv" --format csv --session $sessionKey + # just writing a new line + Write-Host " " Write-Verbose "Exporting organization vault to JSON." bw export $password --organizationid $_.id --output "$PSScriptRoot\Bitwarden Organization $($_.name) Export $dateTime.json" --format json --session $sessionKey + # just writing a new line + Write-Host " " } Write-Host "Looking for items with attachments..."