From 3b8358034375b7907579b50229838c08e9fdad6d Mon Sep 17 00:00:00 2001 From: Canop Date: Sun, 28 Feb 2021 16:17:46 +0100 Subject: don't ask again to install after an incomplete installation --- CHANGELOG.md | 4 ++++ Cargo.lock | 2 +- Cargo.toml | 2 +- src/shell_install/mod.rs | 5 ++++- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 28495bf..63c65d9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ + +### v1.2.7 - 2021-02-28 +- don't ask again for installation if no sourcing file has been found + ### v1.2.6 - 2021-02-27 - clipboard features (copy and paste verbs) now work on Android/Termux (needs the Termux API to be installed) diff --git a/Cargo.lock b/Cargo.lock index 29e9e14..54dbb1e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -121,7 +121,7 @@ dependencies = [ [[package]] name = "broot" -version = "1.2.6" +version = "1.2.7" dependencies = [ "ahash", "ansi_colours", diff --git a/Cargo.toml b/Cargo.toml index d8fb298..571c198 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "broot" -version = "1.2.6" +version = "1.2.7" authors = ["dystroy "] repository = "https://github.com/Canop/broot" documentation = "https://dystroy.org/broot" diff --git a/src/shell_install/mod.rs b/src/shell_install/mod.rs index 686dc93..26d1d7c 100644 --- a/src/shell_install/mod.rs +++ b/src/shell_install/mod.rs @@ -162,13 +162,16 @@ impl ShellInstall { debug!("User refuses the installation. Doing nothing."); return Ok(()); } + // even if the installation isn't really complete (for example + // when no bash file was found), we don't want to ask the user + // again, we'll assume it's done + ShellInstallState::Installed.write_file()?; } debug!("Starting install"); bash::install(self)?; fish::install(self)?; self.should_quit = true; if self.done { - ShellInstallState::Installed.write_file()?; self.skin.print_text(MD_INSTALL_DONE); } Ok(()) -- cgit v1.2.3