Skip to content

Commit d3f780a

Browse files
authored
Fix file read for old path (#42)
Fixes #41.
1 parent ddb5ac2 commit d3f780a

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ata/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ata"
3-
version = "2.0.3"
3+
version = "2.0.4"
44
edition = "2021"
55
authors = ["The ATA Developers"]
66
license = "MIT"

ata/src/main.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@ fn main() -> prompt::TokioResult<()> {
8383
if !old_filename.exists() && !filename.exists() {
8484
help::missing_toml(args);
8585
}
86+
let filename = if old_filename.exists() {
87+
old_filename
88+
} else {
89+
filename
90+
};
8691
let mut contents = String::new();
8792
File::open(filename)
8893
.unwrap()

0 commit comments

Comments
 (0)