Check for updates

This commit is contained in:
Anton Medvedev 2021-10-11 22:09:09 +02:00
parent 3105caa1ce
commit 48619c85c2

View File

@ -141,12 +141,10 @@ class MainCommand extends SelectCommand
private function checkUpdates()
{
if (rand(1, 6) === 1) {
try {
fwrite(STDERR, Httpie::get('https://deployer.org/check-updates/' . DEPLOYER_VERSION)->send());
} catch (\Throwable $e) {
// Meh
}
try {
fwrite(STDERR, Httpie::get('https://deployer.org/check-updates/' . DEPLOYER_VERSION)->send());
} catch (\Throwable $e) {
// Meh
}
}