Skip to content

Commit

Permalink
fix crash while have invalid bucket
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisCatCP committed Dec 17, 2023
1 parent 939f76d commit 173f374
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Scoop-Search/Scoop-Search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ namespace scoop
std::vector<fs::path> buckets;
for (const auto& bucket : fs::directory_iterator(scoop / "buckets"))
{
if (bucket.is_directory())
if (bucket.is_directory() && fs::is_directory(fs::path{ bucket } / "bucket"))
buckets.emplace_back(bucket);
}
return buckets;
Expand Down

0 comments on commit 173f374

Please sign in to comment.