Skip to content

Commit fdabfaf

Browse files
🪲 [Fix]: Ensure that Debug and Verbose preferences are controllable (#46)
## Description This pull request includes a minor cleanup in the `scripts/exec.ps1` file to remove duplicate lines and streamline the script's setup process. Code cleanup: * Removed redundant assignments for `$DebugPreference` and `$VerbosePreference`, as these were already defined earlier in the script. ## Type of change <!-- Use the check-boxes [x] on the options that are relevant. --> - [ ] 📖 [Docs] - [x] 🪲 [Fix] - [ ] 🩹 [Patch] - [ ] ⚠️ [Security fix] - [ ] 🚀 [Feature] - [ ] 🌟 [Breaking change] ## Checklist <!-- Use the check-boxes [x] on the options that are relevant. --> - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas
1 parent 7ae4dab commit fdabfaf

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

scripts/exec.ps1

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@ param()
33

44
$DebugPreference = $env:PSMODULE_INVOKE_PESTER_INPUT_Debug -eq 'true' ? 'Continue' : 'SilentlyContinue'
55
$VerbosePreference = $env:PSMODULE_INVOKE_PESTER_INPUT_Verbose -eq 'true' ? 'Continue' : 'SilentlyContinue'
6-
76
$PSStyle.OutputRendering = 'Ansi'
8-
$DebugPreference = $env:PSMODULE_INVOKE_PESTER_INPUT_Debug ? 'Continue' : 'SilentlyContinue'
9-
$VerbosePreference = $env:PSMODULE_INVOKE_PESTER_INPUT_Verbose ? 'Continue' : 'SilentlyContinue'
107

118
'::group::Exec - Setup prerequisites'
129
Import-Module "$PSScriptRoot/Helpers.psm1"

0 commit comments

Comments
 (0)