Skip to content

Commit

Permalink
Merge pull request silverstripe#40 from blueo/pulls/fix-execute-retur…
Browse files Browse the repository at this point in the history
…n-int

Return int from execute
  • Loading branch information
chillu authored Oct 29, 2020
2 parents a14be42 + 85f67b2 commit 0705b19
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Console/VendorExposeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function execute(InputInterface $input, OutputInterface $output)
$modules = $this->getAllLibraries();
if (empty($modules)) {
$io->write("No modules to expose");
return;
return 0;
}

// Query first library for base destination
Expand All @@ -53,6 +53,7 @@ public function execute(InputInterface $input, OutputInterface $output)

// Success
$io->write("All modules updated!");
return 0;
}

/**
Expand Down

0 comments on commit 0705b19

Please sign in to comment.