probably contains app name as well
All checks were successful
EIVE/eive-obsw/pipeline/head This commit looks good

This commit is contained in:
Robin Müller 2023-03-05 20:06:06 +01:00
parent 1938addaa8
commit f82cc2aeda
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814

View File

@ -52,7 +52,7 @@ int obsw::obsw() {
bootDelayHandling();
bool initWatchFunction = false;
if (std::filesystem::current_path() == "/usr/bin") {
if (std::filesystem::current_path().string().find("/usr/bin") != std::string::npos) {
initWatchFunction = true;
}
ReturnValue_t result = WATCHDOG_HANDLER.initialize(initWatchFunction);