fix hash file list, exclude hash list

master
Arne Schroeder 2019-09-07 14:07:22 +02:00
parent 728bc6457a
commit 1fd7baea4c
1 changed files with 5 additions and 0 deletions

View File

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