Skip to content

Commit 52a914d

Browse files
authored
fix: Set global preferences variables (#22)
1 parent f5afc1f commit 52a914d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

action.ps1

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
#!/usr/bin/env pwsh
2-
# $ErrorActionPreference = 'Stop' # Stop immediately on error, this will not lead into unwated comments.
1+
# Set Global Preference
2+
$Global:ErrorActionPreference = 'Continue'
3+
$Global:VerbosePreference = 'Continue'
34

45
# Import all modules
56
Join-Path $PSScriptRoot 'src' | Get-ChildItem -File | Select-Object -ExpandProperty Fullname | Import-Module
67

78
Install-Scoop
89

9-
$VerbosePreference = 'Continue' # Preserve verbose in logs
10-
1110
Test-NestedBucket
1211
Initialize-NeededConfiguration
1312

0 commit comments

Comments
 (0)