Fix: send output to CONSOLE if directories are actually not equal.

This commit is contained in:
Gerhard Hoffmann 2024-05-17 12:26:36 +02:00
parent f60cd9e4ef
commit 55c82eb509

View File

@ -1082,7 +1082,7 @@ bool Worker::syncCustomerRepositoryAndFS() {
// now check tariff-files in etc and /etc/psa_tariff
QDir dir1(QDir::cleanPath(m_customerRepository + QDir::separator() + "etc/psa_tariff"));
QDir dir2("/etc/psa_tariff");
if (Utils::sameFilesInDirs(dir1, dir2)) {
if (Utils::sameFilesInDirs(dir1, dir2) == false) {
CONSOLE() << QDir::cleanPath(m_customerRepository + QDir::separator() + "etc/psa_tariff")
<< "AND /etc/psa_tariff ARE DIFFERENT: CHANGED CUSTOMER-NUMBER?";
}