Manager: Fix system target detection in working directory

This commit is contained in:
Riyyi
2022-01-24 14:24:17 +01:00
parent 1b4de8fb5d
commit 82f38345d1
+3 -1
View File
@@ -394,7 +394,9 @@ bool Dotfile::isSystemTarget(const std::string& target)
if (target.find(systemDirectory) == 0) { if (target.find(systemDirectory) == 0) {
return true; return true;
} }
if (target.find(m_workingDirectory / systemDirectory) == 0) { // FIXME: The second filesystem::path cant have a "/" as the first character,
// as it will think the path is at the root.
if (target.find(m_workingDirectory.string() + systemDirectory.string()) == 0) {
return true; return true;
} }
} }