[yabridgectl] Fix removing non-existent directory

As mentioned in #46.
This commit is contained in:
Robbert van der Helm
2020-10-23 01:48:26 +02:00
parent db02fa1c43
commit c2ec1ce994
2 changed files with 5 additions and 6 deletions
+2
View File
@@ -27,6 +27,8 @@ Versioning](https://semver.org/spec/v2.0.0.html).
.so files as usual.
- Added a `--force` option to `yabridgectl sync` to always recreate existing .so
files like in previous versions.
- Fixed a regression from yabridgectl 1.6.1 that prevented you from removing
directories that no longer exist using `yabridgectl rm`.
## [1.7.0] - 2020-10-13
+3 -6
View File
@@ -139,12 +139,9 @@ fn main() -> Result<()> {
.value_of_t_or_exit::<PathBuf>("path")
.canonicalize()?,
),
("rm", Some(options)) => actions::remove_directory(
&mut config,
&options
.value_of_t_or_exit::<PathBuf>("path")
.canonicalize()?,
),
("rm", Some(options)) => {
actions::remove_directory(&mut config, &options.value_of_t_or_exit::<PathBuf>("path"))
}
("list", _) => actions::list_directories(&config),
("status", _) => actions::show_status(&config),
("set", Some(options)) => actions::set_settings(