state: Default interactive action is Yes
When pressing only <enter> on the question "..continue [Y/n]?" then lets take that as a "yes"cute-signatures
parent
48802be57f
commit
d67ee300b6
|
@ -771,7 +771,7 @@ int apk_state_commit(struct apk_state *state,
|
|||
printf("Do you want to continue [Y/n]? ");
|
||||
fflush(stdout);
|
||||
r = fgetc(stdin);
|
||||
if (r != 'y' && r != 'Y')
|
||||
if (r != 'y' && r != 'Y' && r != '\n')
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue