get the right directory

This commit is contained in:
Dengke Tang
2023-02-23 15:05:57 -08:00
parent 26ab397cd5
commit 8208b31f5d
+5 -1
View File
@@ -1,4 +1,4 @@
@echo on @echo off
setlocal setlocal
REM Run command to get composer_dir REM Run command to get composer_dir
@@ -11,6 +11,10 @@ if "%composer_dir%"=="" (
exit /b 1 exit /b 1
) else ( ) else (
cd .. cd ..
set "script_dir=%~dp0"
set "work_dir=%script_dir%/.."
cd %work_dir%
php -c php-win.ini %composer_dir% update php -c php-win.ini %composer_dir% update
php -c php-win.ini vendor/bin/phpunit tests --debug php -c php-win.ini vendor/bin/phpunit tests --debug
) )