mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-24 09:12:51 +01:00
Check for updates
This commit is contained in:
parent
3105caa1ce
commit
48619c85c2
@ -141,12 +141,10 @@ class MainCommand extends SelectCommand
|
|||||||
|
|
||||||
private function checkUpdates()
|
private function checkUpdates()
|
||||||
{
|
{
|
||||||
if (rand(1, 6) === 1) {
|
try {
|
||||||
try {
|
fwrite(STDERR, Httpie::get('https://deployer.org/check-updates/' . DEPLOYER_VERSION)->send());
|
||||||
fwrite(STDERR, Httpie::get('https://deployer.org/check-updates/' . DEPLOYER_VERSION)->send());
|
} catch (\Throwable $e) {
|
||||||
} catch (\Throwable $e) {
|
// Meh
|
||||||
// Meh
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user