Skip to content

Commit b518d76

Browse files
committed
CI Compliance
1 parent c2f9a2a commit b518d76

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

modules/common.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function Set-RegistryValue {
2727
)
2828
if ($global:dryrun) {
2929
Write-Host "[DRY-RUN] Would set $Path\$Name = $Value ($Type)" -ForegroundColor DarkYellow
30-
Write-ModuleLog "[DRY-RUN] Would set $Path\$Name = $Value ($Type)"
30+
Write-ModuleLog "[DRY-RUN] Would set $($Path)\$($Name) = $Value ($Type)"
3131
} else {
3232
try {
3333
if ($Type -eq "DWord" -or $Type -eq "QWord") {
@@ -41,10 +41,10 @@ function Set-RegistryValue {
4141
} else {
4242
Set-ItemProperty -Path $Path -Name $Name -Value $Value -Type $Type
4343
}
44-
Write-ModuleLog "Set $Path\$Name = $Value ($Type)"
44+
Write-ModuleLog "Set $($Path)\$($Name) = $Value ($Type)"
4545
} catch {
46-
Write-Host "[ERROR] Failed to set $Path\$Name: $_" -ForegroundColor Red
47-
Write-ModuleLog "[ERROR] Failed to set $Path\$Name: $_"
46+
Write-Host "[ERROR] Failed to set $($Path)\$($Name): $_" -ForegroundColor Red
47+
Write-ModuleLog "[ERROR] Failed to set $($Path)\$($Name): $_"
4848
}
4949
}
5050
}

0 commit comments

Comments
 (0)