fix: use env:USERNAME when removing start menu items (#169)

This commit is contained in:
Rohan Kapadia
2024-12-24 20:32:07 +05:30
committed by GitHub
parent c25dcb298b
commit e3b4ea24da

View File

@@ -605,7 +605,7 @@ function ReplaceStartMenu {
$startMenuTemplate = "$PSScriptRoot/Start/start2.bin"
)
$userName = $startMenuBinFile.Split("\")[2]
$userName = $env:USERNAME
# Check if template bin file exists, return early if it doesn't
if (-not (Test-Path $startMenuTemplate)) {