Skip to content

Commit

Permalink
Includes instructions to update the module when it's installed as a P…
Browse files Browse the repository at this point in the history
…owershell module.
  • Loading branch information
trparky committed Jan 17, 2024
1 parent 5cc7835 commit 6440f35
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Export-Bitwarden.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
RootModule = 'Export-Bitwarden.psm1'

# Version number of this module.
ModuleVersion = '1.33'
ModuleVersion = '1.34'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand Down
11 changes: 9 additions & 2 deletions Export-Bitwarden.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -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 =="
Expand All @@ -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 ""
}

Expand Down

0 comments on commit 6440f35

Please sign in to comment.