diff --git a/worker.cpp b/worker.cpp index 2cbe08a..51035bf 100644 --- a/worker.cpp +++ b/worker.cpp @@ -214,6 +214,12 @@ bool Worker::isRepositoryCorrupted() { Utils::printCriticalErrorMsg("CORRUPTED CUSTOMER REPOSITORY .GIT DOES NOT EXIST"); return true; } + QDir customerRepositoryEtc(QDir::cleanPath(m_customerRepository + QDir::separator() + "etc/")); + if (!customerRepositoryEtc.exists()) { + // should never happen + Utils::printCriticalErrorMsg(QString("CORRUPTED CUSTOMER REPOSITORY %1/etc DOES NOT EXIST").arg(m_customerRepository)); + return true; + } } return false; }