alsaucm: do not bail out in the interactive mode upon error

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2011-01-31 14:30:20 +01:00
parent 629fdf6445
commit e7d86f1c9c

View file

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