Tighten the check for command-line context

This commit is contained in:
mataha 2023-06-17 02:11:06 +02:00
parent 8d61617c6a
commit 435a62266a
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@
setlocal DisableDelayedExpansion EnableExtensions
if /i "%~f0"=="%~dpnx0" (
if "%=^%="=="%=%=" (
set ^"$p=%%<nul"
) else (
set ^"$p=^%<nul"