commented out broken config file stub code
This commit is contained in:
parent
c6c2a89eb2
commit
8209d6936f
1 changed files with 9 additions and 8 deletions
17
src/main.rs
17
src/main.rs
|
@ -405,14 +405,15 @@ fn main() {
|
|||
|
||||
// Check for default ini file's existence and
|
||||
// create new one if file does not exist
|
||||
let toml_exists = Path::new("~/.config/osupdater.toml").exists();
|
||||
if toml_exists == false {
|
||||
println!("No config file found");
|
||||
println!("Creating new config at : ~/.config/osupdater.toml");
|
||||
//toml_create_default ();
|
||||
} else if toml_exists == true {
|
||||
println!("Config file found at ~/.config/osupater.toml");
|
||||
}
|
||||
|
||||
// let toml_exists = Path::new("~/.config/osupdater.toml").exists();
|
||||
// if toml_exists == false {
|
||||
// println!("No config file found");
|
||||
// println!("Creating new config at : ~/.config/osupdater.toml");
|
||||
// //toml_create_default ();
|
||||
//} else if toml_exists == true {
|
||||
// println!("Config file found at ~/.config/osupater.toml");
|
||||
//}
|
||||
|
||||
// Parse ini
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue