Enabled self-update of phar
This commit is contained in:
parent
4873ffdf02
commit
072570ebea
@ -8,5 +8,14 @@ foreach ($loaders as $loader) {
|
||||
if (file_exists($loader)) { require_once $loader; break; }
|
||||
}
|
||||
|
||||
if (count($argv)>1 && $argv[1]=='self-update') {
|
||||
if (IS_PHAR) {
|
||||
tinyphar_update(META_PACKAGE_NAME, META_PACKAGE_VERSION, META_UPDATE_CHANNEL);
|
||||
} else {
|
||||
printf("Error: You can only self-update phar archives!\n");
|
||||
}
|
||||
exit;
|
||||
}
|
||||
|
||||
$app = new MakePhar\Application();
|
||||
$app->run();
|
||||
|
Loading…
Reference in New Issue
Block a user