Skip to content

Commit

Permalink
Improve PowerShell debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
davidxuang committed Oct 14, 2024
1 parent 511c61f commit 2659271
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion seagull-icons/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
param ()

$PSNativeCommandUseErrorActionPreference = $true
if ($PSBoundParameters.ContainsKey('Debug')) {
if ($DebugPreference -ne 'SilentlyContinue') {
$ErrorActionPreference = 'Break'
} else {
$ErrorActionPreference = 'Stop'
Expand Down
2 changes: 1 addition & 1 deletion update.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ using namespace System.Management.Automation
param ()

$PSNativeCommandUseErrorActionPreference = $true
if ($PSBoundParameters.ContainsKey('Debug')) {
if ($DebugPreference -ne 'SilentlyContinue') {
$ErrorActionPreference = 'Break'
} else {
$ErrorActionPreference = 'Stop'
Expand Down

0 comments on commit 2659271

Please sign in to comment.