Skip to content

Commit

Permalink
Fix encrypt filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
dvsku committed Nov 23, 2023
1 parent 5e5ef73 commit 477008b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dvsku_toolkit/systems/sys_crypt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ void sys_crypt::encrypt(const FOLDER_PATH& input, const FOLDER_PATH& output, int
}

// Only check when there is no filter
if (!filter && !should_be_encrypted(file) )
if (filter != 0 && !should_be_encrypted(file))
continue;

std::filesystem::path output_path = output.empty() ? "" : construct_output_path(file, input, output);
Expand Down

0 comments on commit 477008b

Please sign in to comment.