diff --git a/src/clone.rs b/src/clone.rs index 4941350..fbb808d 100644 --- a/src/clone.rs +++ b/src/clone.rs @@ -18,8 +18,7 @@ pub fn clone(pkg: &str) { env::set_current_dir(&cachedir); Command::new("makepkg") .arg("-i") - .spawn() - .expect(&error); + .arg("--noconfirm") + .spawn(); } } - diff --git a/src/help.rs b/src/help.rs index f9632a9..049f206 100644 --- a/src/help.rs +++ b/src/help.rs @@ -5,4 +5,4 @@ ame -S - install a package ame -R - remove a package ame -Syu - system upgrade ame -Ss - search for a package") -} +} \ No newline at end of file diff --git a/src/main.rs b/src/main.rs index a7ea3b8..2dbc4c6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -40,4 +40,4 @@ fn main() { help(); exit(0); } -} +} \ No newline at end of file diff --git a/src/uninstall.rs b/src/uninstall.rs index c28021c..de2a2d8 100644 --- a/src/uninstall.rs +++ b/src/uninstall.rs @@ -9,4 +9,4 @@ pub fn uninstall(pkg: &str) { .spawn() //.status() TODO: for some reason cant use both .spawn and .status at the same time, need fix .expect(&errstr); -} +} \ No newline at end of file