Making installer more robust
This commit is contained in:
parent
0a5c12e366
commit
53599f1fc8
|
@ -7,7 +7,7 @@ task('dotnet_set_env', ['always' => true], function() {
|
|||
});
|
||||
|
||||
task('dotnet_install', function(array $args) {
|
||||
DotnetSupport::install(isset($args[0]) && $args[0] === '--force');
|
||||
DotnetSupport::installEx(isset($args[0]) && $args[0] === '--force');
|
||||
});
|
||||
|
||||
function dotnet_shell($cmd)
|
||||
|
|
|
@ -7,7 +7,13 @@ class DotnetSupport
|
|||
{
|
||||
const VERSION = "8.0.0";
|
||||
|
||||
static function install(bool $force = false)
|
||||
//NOTE: this is a composer event, it doesn't accept any arguments
|
||||
static function install()
|
||||
{
|
||||
self::installEx(false);
|
||||
}
|
||||
|
||||
static function installEx(bool $force = false)
|
||||
{
|
||||
$version = self::VERSION;
|
||||
|
||||
|
|
Loading…
Reference in New Issue