rewrite scripts to detect composer environment
This commit is contained in:
1 parent
8436debdbb
commit
ccd91b4f0f
7 files changed
+167
-5
No files matched your search
@@ -0,0 +1,11 @@
|
||||
|
||||
@echo off
|
||||
SETLOCAL EnableDelayedExpansion
|
||||
echo %cmdcmdline% | findstr /i /c:"%~nx0" >NUL && set iscommandline=1
|
||||
echo %PSModulePath% | findstr /i /c:"%USERPROFILE%" >NUL && set ispowershell=1
|
||||
cd /D "%~dp0"
|
||||
|
||||
@pwsh -NoProfile -ExecutionPolicy Bypass -Command .\scripts\composer-dump-autoload.ps1
|
||||
|
||||
IF DEFINED iscommandline IF NOT DEFINED ispowershell pause
|
||||
ENDLOCAL
|
||||
Reference in new issue
Block a user