Tighten the check for command-line context
This commit is contained in:
parent
8d61617c6a
commit
435a62266a
|
|
@ -38,7 +38,7 @@
|
||||||
|
|
||||||
setlocal DisableDelayedExpansion EnableExtensions
|
setlocal DisableDelayedExpansion EnableExtensions
|
||||||
|
|
||||||
if /i "%~f0"=="%~dpnx0" (
|
if "%=^%="=="%=%=" (
|
||||||
set ^"$p=%%<nul"
|
set ^"$p=%%<nul"
|
||||||
) else (
|
) else (
|
||||||
set ^"$p=^%<nul"
|
set ^"$p=^%<nul"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue