Extract main to update
Extracted most of the functionality from main into a new update fn. This is to allow room for command flags.
This commit is contained in:
parent
ef2134a00b
commit
9215820374
@ -21,6 +21,10 @@ mod wrappers;
|
||||
fn main() {
|
||||
println!("{}", copyright_notice());
|
||||
|
||||
update();
|
||||
}
|
||||
|
||||
fn update() {
|
||||
if let Err(e) = pacman::check() {
|
||||
error_println(e.to_string());
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user