Skip to content

Commit

Permalink
more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yao-msft committed May 9, 2024
1 parent 7fdff08 commit 44cd0a8
Show file tree
Hide file tree
Showing 3 changed files with 310 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ namespace AppInstaller::CLI::Workflow
std::filesystem::path dependenciesDirectory = downloadDirectory / L"Dependencies";

// Create directories if needed.
auto directoryToCreate = skipDependencies ? downloadDirectory : dependenciesDirectory;
auto directoryToCreate = (skipDependencies || downloadInfo.DependencyPackages.empty()) ? downloadDirectory : dependenciesDirectory;
if (!std::filesystem::exists(directoryToCreate))
{
std::filesystem::create_directories(directoryToCreate);
Expand Down
Loading

0 comments on commit 44cd0a8

Please sign in to comment.