fix detection of script shell starting point
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
@echo off
|
||||
echo %cmdcmdline% | findstr /i /c:"%~nx0" >NUL && set iscommandline=1
|
||||
echo %PSModulePath% | findstr "%USERPROFILE%" >NUL && set ispowershell=1
|
||||
echo %PSModulePath% | findstr /i /c:"%USERPROFILE%" >NUL && set ispowershell=1
|
||||
cd /D "%~dp0"
|
||||
|
||||
echo.
|
||||
|
||||
Reference in New Issue
Block a user