Skip to content

Commit

Permalink
Merge pull request #68 from falkartis/patch-1
Browse files Browse the repository at this point in the history
Allow user to preserve all files by typing either "a" or "all" instead of just "all".
  • Loading branch information
adrianlopezroche authored Oct 28, 2016
2 parents e95ec42 + 88f3d2d commit ac468d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fdupes.c
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,7 @@ void deletefiles(file_t *files, int prompt, FILE *tty)
token = strtok(preservestr, " ,\n");

while (token != NULL) {
if (strcasecmp(token, "all") == 0)
if (strcasecmp(token, "all") == 0 || strcasecmp(token, "a") == 0)
for (x = 0; x <= counter; x++) preserve[x] = 1;

number = 0;
Expand Down

0 comments on commit ac468d9

Please sign in to comment.