Skip to content

Commit

Permalink
Ensure installer temporary directory exists when installing
Browse files Browse the repository at this point in the history
  • Loading branch information
hedgehog1029 committed Dec 31, 2021
1 parent 6f7624a commit 725f747
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ protected Manifest installPackage(@NonNull Installer installer, @NonNull Instanc
final File cachePath = new File(instance.getDir(), "update_cache.json");
final File featuresPath = new File(instance.getDir(), "features.json");

// Make sure the temp dir exists
installer.getTempDir().mkdirs();

final InstallLog previousLog = Persistence.read(logPath, InstallLog.class);
final InstallLog currentLog = new InstallLog();
currentLog.setBaseDir(contentDir);
Expand Down

0 comments on commit 725f747

Please sign in to comment.