Skip to content

Commit 2f2d189

Browse files
committed
Set the url based on current binary release
1 parent 0155540 commit 2f2d189

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/Commands/SelfUpdateCommand.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,12 @@ class SelfUpdateCommand extends Command
3232
*/
3333
public function handle()
3434
{
35+
$this->parseVersion();
36+
3537
$url = 'https://hnhdigital-os.github.io/mysql-helper';
3638

37-
if (stripos(config('app.version'), 'stable') === false) {
38-
$url .= '/dev';
39+
if ($this->release !== 'stable') {
40+
$url .= '/'.$this->release;
3941
}
4042

4143
$this->setUrl($url);

0 commit comments

Comments
 (0)