mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-09 17:55:43 +01:00
alsaucm: do not bail out in the interactive mode upon error
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
629fdf6445
commit
e7d86f1c9c
1 changed files with 6 additions and 2 deletions
|
@ -472,8 +472,12 @@ int main(int argc, char *argv[])
|
|||
my_exit(context, EXIT_FAILURE);
|
||||
}
|
||||
err = do_commands(context);
|
||||
if (err < 0)
|
||||
my_exit(context, EXIT_FAILURE);
|
||||
if (err < 0) {
|
||||
if (context->interactive)
|
||||
printf("^^^ error, try again\n");
|
||||
else
|
||||
my_exit(context, EXIT_FAILURE);
|
||||
}
|
||||
}
|
||||
|
||||
if (in != stdin)
|
||||
|
|
Loading…
Reference in a new issue