Skip to content

Commit

Permalink
fix return values of commands (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
wachterjohannes authored Feb 12, 2021
1 parent 7b3ef32 commit 64e3e4e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Bundle/Command/BaseServerCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
{
$this->getCommand($input)->execute($this->getCommandOptions($input));

return 1;
return 0;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Bundle/Command/CheckCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ protected function execute(InputInterface $input, OutputInterface $output)

$io->writeln('');

return 1;
return 0;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Bundle/Command/FetchCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
$storage->fetch($file);
}

return 1;
return 0;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Bundle/Command/PushCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
$storage->push($file);
}

return 1;
return 0;
}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/Bundle/Command/SelfUpdateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
$output->writeln('You are already using "' . $updater->getNewVersion() . '" version.');

// No update needed!
return 1;
return 0;
}

$upgradeFile = 'phar://' . $updater->getLocalPharFile() . '/UPGRADE.md';
Expand All @@ -53,7 +53,7 @@ protected function execute(InputInterface $input, OutputInterface $output)

$output->writeln(sprintf('Updated from %s to %s', $updater->getOldVersion(), $updater->getNewVersion()));

return 1;
return 0;
}

/**
Expand Down

0 comments on commit 64e3e4e

Please sign in to comment.