Skip to content

Commit

Permalink
[bug] add self-update restore path
Browse files Browse the repository at this point in the history
  • Loading branch information
kbond committed Jul 27, 2021
1 parent 4657c8f commit 29bf3a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/SelfUpdateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ protected function execute(InputInterface $input, OutputInterface $output)
{
$io = new SymfonyStyle($input, $output);
$updater = new Updater(null, false, Updater::STRATEGY_GITHUB);
$updater->setBackupPath(\sys_get_temp_dir().'/phpmyadmin.phar.bak');
$updater->setBackupPath($backup = \sys_get_temp_dir().'/phpmyadmin.phar.bak');
$updater->setRestorePath($backup);

if ($input->getOption('rollback')) {
if ($updater->rollback()) {
Expand Down

0 comments on commit 29bf3a4

Please sign in to comment.