mirror of
https://github.com/massgravel/Microsoft-Activation-Scripts.git
synced 2025-05-24 12:24:56 +00:00
Replace square brackets with double quotes in string comparison
This commit is contained in:
parent
d55b9fa78c
commit
b983bd41da
7 changed files with 47 additions and 47 deletions
|
@ -248,7 +248,7 @@ set -=
|
|||
set old=
|
||||
|
||||
for /f "delims=[] tokens=2" %%# in ('ping -4 -n 1 updatecheck.mass%-%grave.dev') do (
|
||||
if not [%%#]==[] (echo "%%#" | find "127.69" %nul1% && (echo "%%#" | find "127.69.%masver%" %nul1% || set old=1))
|
||||
if not "%%#"=="" (echo "%%#" | find "127.69" %nul1% && (echo "%%#" | find "127.69.%masver%" %nul1% || set old=1))
|
||||
)
|
||||
|
||||
if defined old (
|
||||
|
@ -935,7 +935,7 @@ for %%# in (pkeyhelper.dll) do @if "%%~$PATH:#"=="" exit /b
|
|||
for %%# in (%keyflow%) do (
|
||||
call :k_pkey %targetSKU% '%%#'
|
||||
if defined pkey call :k_pkeychannel !pkey!
|
||||
if /i [!pkeychannel!]==[%%#] (
|
||||
if /i "!pkeychannel!"=="%%#" (
|
||||
set key=!pkey!
|
||||
exit /b
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue