Shell: return the exit code of a '-c' command execution

This commit is contained in:
Nick Vella
2021-01-15 17:51:00 +11:00
committed by Andreas Kling
parent d1e3193339
commit 1d11b62ca4

View File

@@ -176,8 +176,7 @@ int main(int argc, char** argv)
if (command_to_run) {
dbgln("sh -c '{}'\n", command_to_run);
shell->run_command(command_to_run);
return 0;
return shell->run_command(command_to_run);
}
if (file_to_read_from && StringView { "-" } != file_to_read_from) {