From 6c2a0c476b795f4bc9eaea54514ca271d3bce6b1 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Wed, 6 Jun 2018 07:41:05 +0200 Subject: [PATCH] Support for updating the Atom Package Manager --- src/main.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main.rs b/src/main.rs index b3e2a674..d72cdcd8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -268,6 +268,16 @@ fn main() -> Result<(), Error> { .report("Node Package Manager", &mut reports); } + if let Ok(apm) = which("apm") { + terminal.print_separator("Atom Package Manager"); + Command::new(&apm) + .args(&["upgrade", "--confirm=false"]) + .spawn()? + .wait() + .map_err(Error::from)? + .report("Atom Package Manager", &mut reports); + } + let mut reports: Vec<_> = reports.into_iter().collect(); reports.sort();