Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed warning when update is skipped. #132

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions Microsoft.PowerShell_profile.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,7 @@ if (-not $debug -and `
$currentTime = Get-Date -Format 'yyyy-MM-dd'
$currentTime | Out-File -FilePath $timeFilePath

} elseif (-not $debug) {
Write-Warning "Profile update skipped. Last update check was within the last $updateInterval day(s)."
} else {
} elseif ($debug) {
Write-Warning "Skipping profile update check in debug mode"
}

Expand Down Expand Up @@ -127,9 +125,7 @@ if (-not $debug -and `
Update-PowerShell
$currentTime = Get-Date -Format 'yyyy-MM-dd'
$currentTime | Out-File -FilePath $timeFilePath
} elseif (-not $debug) {
Write-Warning "PowerShell update skipped. Last update check was within the last $updateInterval day(s)."
} else {
} elseif ($debug) {
Write-Warning "Skipping PowerShell update in debug mode"
}

Expand Down