Skip to content

Commit

Permalink
Update PowerShell/ScubaGear/CheckVersion.ps1
Browse files Browse the repository at this point in the history
Escape $ in the warning message

Co-authored-by: David Bui <[email protected]>
  • Loading branch information
2 people authored and thom neale committed Dec 16, 2024
1 parent 9654e1f commit 2c660b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PowerShell/ScubaGear/CheckVersion.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function Invoke-CheckScubaGearVersionPSGallery {
$LatestVersion = [System.Version]$ModuleInfo.Version

if ($CurrentVersion -lt $LatestVersion) {
Write-Warning "A new version of ScubaGear ($LatestVersion) is available on PowerShell Gallery. This notification can be disabled by setting env:SCUBAGEAR_SKIP_VERSION_CHECK = $true before running ScubaGear."
Write-Warning "A new version of ScubaGear ($LatestVersion) is available on PowerShell Gallery. This notification can be disabled by setting `$env:SCUBAGEAR_SKIP_VERSION_CHECK = `$true before running ScubaGear."

}

Expand Down

0 comments on commit 2c660b4

Please sign in to comment.