File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,9 @@ if (!file_exists("$PHPUNIT_DIR/phpunit-$PHPUNIT_VERSION/phpunit") || md5_file(__
61
61
@mkdir ($ PHPUNIT_DIR , 0777 , true );
62
62
chdir ($ PHPUNIT_DIR );
63
63
if (file_exists ("phpunit- $ PHPUNIT_VERSION " )) {
64
- passthru (sprintf ('\\' === DIRECTORY_SEPARATOR ? '(del /S /F /Q %s & rmdir %1$s) >nul ' : 'rm -rf %s ' , "phpunit- $ PHPUNIT_VERSION " ));
64
+ passthru (sprintf ('\\' === DIRECTORY_SEPARATOR ? 'rmdir /S /Q %s > NUL ' : 'rm -rf %s ' , "phpunit- $ PHPUNIT_VERSION .old " ));
65
+ rename ("phpunit- $ PHPUNIT_VERSION " , "phpunit- $ PHPUNIT_VERSION .old " );
66
+ passthru (sprintf ('\\' === DIRECTORY_SEPARATOR ? 'rmdir /S /Q %s ' : 'rm -rf %s ' , "phpunit- $ PHPUNIT_VERSION .old " ));
65
67
}
66
68
passthru ("$ COMPOSER create-project --no-install --prefer-dist --no-scripts --no-plugins --no-progress --ansi phpunit/phpunit phpunit- $ PHPUNIT_VERSION \"$ PHPUNIT_VERSION .* \"" );
67
69
chdir ("phpunit- $ PHPUNIT_VERSION " );
You can’t perform that action at this time.
0 commit comments