diff --git a/Export-Bitwarden.psd1 b/Export-Bitwarden.psd1 index b6a5cf6..9837b98 100644 --- a/Export-Bitwarden.psd1 +++ b/Export-Bitwarden.psd1 @@ -12,7 +12,7 @@ RootModule = 'Export-Bitwarden.psm1' # Version number of this module. -ModuleVersion = '1.33' +ModuleVersion = '1.34' # Supported PSEditions # CompatiblePSEditions = @() diff --git a/Export-Bitwarden.psm1 b/Export-Bitwarden.psm1 index 8b3b78a..269ff77 100644 --- a/Export-Bitwarden.psm1 +++ b/Export-Bitwarden.psm1 @@ -31,7 +31,7 @@ function Export-Bitwarden { # Don't touch this line! # == WARNING!!! DO NOT TOUCH ANYTHING BELOW THIS!!! == # ==================================================== - $ver = "1.33" + $ver = "1.34" Write-Host -ForegroundColor Green "========================================================================================" Write-Host -ForegroundColor Green "== Bitwarden Vault Export Script v$ver ==" @@ -48,7 +48,14 @@ function Export-Bitwarden { # Don't touch this line! if ($scriptVersionFromWeb -ne $ver) { Write-Host -ForegroundColor Green "Notice:" -NoNewline - Write-Host " There is an update to this script, please go to https://github.com/trparky/Bitwarden-Vault-Export-Script and download the new version." + + if ($PSScriptRoot -Match "powershell/Modules" || $PSScriptRoot -Match "powershell\\Modules") { + Write-Host " There is an update to this script, please execute Update-Module at the Powershell prompt." + } + else { + Write-Host " There is an update to this script, please go to https://github.com/trparky/Bitwarden-Vault-Export-Script and download the new version." + } + Write-Host "" }