Skip to content

Commit

Permalink
Fix issue where if termux installer failed with an exception after pr…
Browse files Browse the repository at this point in the history
…efix directory was already created, then try again would load a broken environment.
  • Loading branch information
agnostic-apollo committed Jun 10, 2021
1 parent e119d34 commit 19c690d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/src/main/java/com/termux/app/TermuxInstaller.java
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ public void run() {
activity.finish();
}).setPositiveButton(R.string.bootstrap_error_try_again, (dialog, which) -> {
dialog.dismiss();
FileUtils.deleteFile(activity, "prefix directory", PREFIX_FILE_PATH, true);
TermuxInstaller.setupBootstrapIfNeeded(activity, whenDone);
}).show();
} catch (WindowManager.BadTokenException e1) {
Expand Down

0 comments on commit 19c690d

Please sign in to comment.