diff --git a/apps/sh.cpp b/apps/sh.cpp index 44980b92..e51a6f9e 100644 --- a/apps/sh.cpp +++ b/apps/sh.cpp @@ -88,7 +88,7 @@ Result luna_main(int argc, char** argv) auto cmd = TRY(input_file->read_line()); if (cmd.is_empty()) { - puts("exit"); + if (interactive) puts("exit"); break; }