Skip to content

Commit 8699eaf

Browse files
committed
fix: windows update status message not reporting correct state
1 parent 8460793 commit 8699eaf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

windows-updates-utility.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,12 @@ set x[wuauserv]=Windows Update
9898
if /i "%noUpdatesState%" == "0x0" (
9999
set AutoUpdate=true
100100
set AutoUpdateBool=%green%enabled%u%
101-
set AutoUpdateStr=%green%%AutoUpdateBool:~0,-1%%u%
101+
set AutoUpdateStr=%green%!AutoUpdateBool:~0,-1!%u%
102102

103103
) else (
104104
set AutoUpdate=false
105105
set AutoUpdateBool=%orange%disabled%u%
106-
set AutoUpdateStr=%orange%%AutoUpdateBool:~0,-1%%u%
106+
set AutoUpdateStr=%orange%!AutoUpdateBool:~0,-1!%u%
107107
)
108108

109109
chcp 65001 >nul

0 commit comments

Comments
 (0)