mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-09-19 17:49:59 +02: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,9 +472,13 @@ int main(int argc, char *argv[])
|
||||||
my_exit(context, EXIT_FAILURE);
|
my_exit(context, EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
err = do_commands(context);
|
err = do_commands(context);
|
||||||
if (err < 0)
|
if (err < 0) {
|
||||||
|
if (context->interactive)
|
||||||
|
printf("^^^ error, try again\n");
|
||||||
|
else
|
||||||
my_exit(context, EXIT_FAILURE);
|
my_exit(context, EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (in != stdin)
|
if (in != stdin)
|
||||||
fclose(in);
|
fclose(in);
|
||||||
|
|
Loading…
Reference in a new issue