remove $Global: scoped variables in favor of $Script: scope, and explicitly scope each usage

This commit is contained in:
Kevin Woley
2025-01-27 10:26:45 -08:00
parent c433c44b70
commit 80fab4092c
2 changed files with 24 additions and 24 deletions
+2 -2
View File
@@ -17,8 +17,8 @@ $ConfigScript = Join-Path $PSScriptRoot "config.ps1"
. $ConfigScript
# apply global configuration
$global:ResticExe = Join-Path $InstallPath $ExeName
$global:LogPath = Join-Path $InstallPath "logs"
$ResticExe = Join-Path $InstallPath $ExeName
$LogPath = Join-Path $InstallPath "logs"
# =========== end configuration =========== #