From 143156f63e2448733f1a35a74e629fe0ae9bb567 Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Sun, 13 Sep 2020 19:51:09 -0400 Subject: have command shell block while commands are running --- src/user/highway/highway.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/user/highway') diff --git a/src/user/highway/highway.c b/src/user/highway/highway.c index 8dc0080..7e78472 100644 --- a/src/user/highway/highway.c +++ b/src/user/highway/highway.c @@ -18,9 +18,7 @@ void main() { ask_user_line_sz(line_buf, 1023); if (blockequ(line_buf, "exit", 5)) return; - if (try_run_command(path_buf)) - yield_task(); - else + if (!try_run_command_blocking(path_buf)) tell_user_sz("An error occured trying to run that command.\n"); } } \ No newline at end of file -- cgit v1.2.3