Commit d67ee300 authored by Natanael Copa's avatar Natanael Copa
Browse files

state: Default interactive action is Yes

When pressing only <enter> on the question "..continue [Y/n]?" then
lets take that as a "yes"
parent 48802be5
......@@ -771,7 +771,7 @@ int apk_state_commit(struct apk_state *state,
printf("Do you want to continue [Y/n]? ");
r = fgetc(stdin);
if (r != 'y' && r != 'Y')
if (r != 'y' && r != 'Y' && r != '\n')
return -1;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment