diff options
author | Canop <cano.petrole@gmail.com> | 2021-02-28 16:17:46 +0100 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2021-02-28 16:17:46 +0100 |
commit | 3b8358034375b7907579b50229838c08e9fdad6d (patch) | |
tree | e6e04a2461084f03df37d5cdd35cafbff3c48712 | |
parent | aba1124192e08bc872e64f3a50c3ff3b6987752a (diff) |
don't ask again to install after an incomplete installationv1.2.7
-rw-r--r-- | CHANGELOG.md | 4 | ||||
-rw-r--r-- | Cargo.lock | 2 | ||||
-rw-r--r-- | Cargo.toml | 2 | ||||
-rw-r--r-- | 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 @@ +<a name="v1.2.7"></a> +### v1.2.7 - 2021-02-28 +- don't ask again for installation if no sourcing file has been found + <a name="v1.2.6"></a> ### v1.2.6 - 2021-02-27 - clipboard features (copy and paste verbs) now work on Android/Termux (needs the Termux API to be installed) @@ -121,7 +121,7 @@ dependencies = [ [[package]] name = "broot" -version = "1.2.6" +version = "1.2.7" dependencies = [ "ahash", "ansi_colours", @@ -1,6 +1,6 @@ [package] name = "broot" -version = "1.2.6" +version = "1.2.7" authors = ["dystroy <denys.seguret@gmail.com>"] 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(()) |