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
commit 1d11b62ca4
Notes: sideshowbarker 2024-07-18 23:36:40 +09:00

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) {