Skip to content

Commit

Permalink
added some more nice messaging
Browse files Browse the repository at this point in the history
  • Loading branch information
OwenMelbz committed May 26, 2018
1 parent d012253 commit 32158dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/Commands/UpdateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,17 @@ public function handle(): void
);

$this->message('Downloading... This might take a moment!');
$this->message('Fun fact whilst you wait, you are the ' . $downloadCount . ' person to update.');
$this->message('Fun fact whilst you wait, you are the ' . $downloadCount . ' person to update to this version.');

$updater->updateTo($updateAvailable);
$updatePath = $updater->updateTo($updateAvailable);
} catch (Exception $e) {
$this->notify('Whoops', 'Looks like something didn\'t go to plan...');
$this->fail($e->getMessage());
exit(0);
}

$this->line('');
$this->line('If your happy the update was a success, feel free to delete the backup stored at ' . $updatePath . '.backup');
$this->line('');
$this->warn('🎉⭐🍕⚡🎉⭐🍕⚡🎉 UPDATED TO ' . $newVersion . ' ⭐🍕⚡🎉⭐🍕⚡🎉⭐🍕⚡');
exit;
Expand Down
Binary file modified builds/application
Binary file not shown.

0 comments on commit 32158dc

Please sign in to comment.