diff --git a/src/integretychecker.cpp b/src/integretychecker.cpp index e5d9d6c..b1e6667 100644 --- a/src/integretychecker.cpp +++ b/src/integretychecker.cpp @@ -79,6 +79,11 @@ std::string IntegretyCheck::generateHashList(const std::string &app) { if (f.is_directory()) { // skip directory, iterator is recursive } else { + // skip may already existing hash file + const std::string filename = f.path().filename().string(); + if (filename == HASH_FILE) { + continue; + } // strip appPath std::string filepath = f.path().string(); filepath.erase(0, p.size() + 1);