mirror of
https://github.com/RGBCube/serenity
synced 2025-05-30 14:38:12 +00:00
Shell: return the exit code of a '-c' command execution
This commit is contained in:
parent
d1e3193339
commit
1d11b62ca4
1 changed files with 1 additions and 2 deletions
|
@ -176,8 +176,7 @@ int main(int argc, char** argv)
|
||||||
|
|
||||||
if (command_to_run) {
|
if (command_to_run) {
|
||||||
dbgln("sh -c '{}'\n", command_to_run);
|
dbgln("sh -c '{}'\n", command_to_run);
|
||||||
shell->run_command(command_to_run);
|
return shell->run_command(command_to_run);
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (file_to_read_from && StringView { "-" } != file_to_read_from) {
|
if (file_to_read_from && StringView { "-" } != file_to_read_from) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue