Skip to content

Commit

Permalink
[5.5] Fix choice for non-tty terminals (#20840)
Browse files Browse the repository at this point in the history
* Fix choice for non-tty terminals

* Update VendorPublishCommand.php
  • Loading branch information
SerafimArts authored and taylorotwell committed Aug 30, 2017
1 parent 5e4e4f5 commit 6831938
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Foundation/Console/VendorPublishCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ protected function promptForProviderOrTag()
$choices = $this->publishableChoices()
);

if ($choice == $choices[0]) {
if ($choice == $choices[0] || is_null($choice)) {
return;
}

Expand Down

0 comments on commit 6831938

Please sign in to comment.