Skip to content

Commit 474f2d5

Browse files
bors[bot]Saviq
andcommitted
Merge #1161
1161: [launch] do not require a TTY for --cloud-init via stdin r=ricab a=Saviq Co-authored-by: Michał Sawicz <[email protected]>
1 parent a052e70 commit 474f2d5

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/platform/console/terminal.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,6 @@ bool mp::Terminal::is_live() const
5858

5959
std::string mp::Terminal::read_all_cin()
6060
{
61-
if (!cin_is_live())
62-
{
63-
throw std::runtime_error("cannot read from stdin without a TTY");
64-
}
65-
6661
std::string content;
6762
char arr[1024];
6863
while (!cin().eof())

0 commit comments

Comments
 (0)