Skip to content

Commit

Permalink
use operator
Browse files Browse the repository at this point in the history
  • Loading branch information
ElBread3 committed Oct 15, 2024
1 parent 1e47eda commit 7b9769e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/file_sys/fs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ std::filesystem::path MntPoints::GetHostPath(std::string_view guest_directory, b
const auto rel_path = std::string_view(corrected_path).substr(pos);
std::filesystem::path host_path = mount->host_path / rel_path;

std::filesystem::path patch_path = mount->host_path.string() + "-UPDATE";
std::filesystem::path patch_path = mount->host_path;
patch_path += "-UPDATE";
if (corrected_path.starts_with("/app0/") && std::filesystem::exists(patch_path / rel_path)) {
host_path = patch_path / rel_path;
}
Expand Down

0 comments on commit 7b9769e

Please sign in to comment.