Skip to content

Commit

Permalink
Merge pull request #106 from perryrh0dan/dev
Browse files Browse the repository at this point in the history
fix(migration): condition
  • Loading branch information
perryrh0dan authored Dec 8, 2020
2 parents d31e080 + 199263f commit 9a2d010
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "tmpo"
description = "Command line utility to create new workspaces based on predefined templates"
version = "2.0.1"
version = "2.0.2"
authors = ["Thomas Pöhlmann <thomaspoehlmann96@googlemail.com>"]
edition = "2018"
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion src/migration/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pub fn check() -> Result<(), RunError> {
}

fn migrate(current_version: Version, target_version: Version) {
if current_version <= Version::parse("2.0.0").unwrap() && target_version >= Version::parse("2.0.0").unwrap() {
if current_version < Version::parse("2.0.0").unwrap() && target_version >= Version::parse("2.0.0").unwrap() {
two::migrate()
}
}
2 changes: 1 addition & 1 deletion src/migration/two.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ fn configuration() {
eprintln!("Couldn't write to file: {}", e);
}

if let Err(e) = writeln!(file, "version: 2.0.0") {
if let Err(e) = writeln!(file, "version: 2.0.2") {
eprintln!("Couldn't write to file: {}", e);
}

Expand Down

0 comments on commit 9a2d010

Please sign in to comment.