From ef3c4897bca293c9b7c98cc8cde4df2448d3f1bc Mon Sep 17 00:00:00 2001 From: Roey Darwish Dror Date: Mon, 25 Jun 2018 22:29:51 +0300 Subject: [PATCH] Linuxbrew (fix #31) --- README.md | 2 +- src/main.rs | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index a396000e..d9692fde 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ Just run `topgrade`. It will run the following steps: * *CentOS/RHEL*: Run `yum upgrade` * *Fedora* - Run `dnf upgrade` * *Debian/Ubuntu*: Run `apt update && apt dist-upgrade` - * *macOS*: Run `brew update && brew upgrade` +* *Unix*: Run `brew update && brew upgrade`. This should handle both Homebrew and Linuxbrew. * Check if the following paths are tracked by Git. If so, pull them: * ~/.emacs.d (Should work whether you use [Spacemacs](http://spacemacs.org/) or a custom configuration) * ~/.zshrc diff --git a/src/main.rs b/src/main.rs index c09574d7..3bb2be80 100644 --- a/src/main.rs +++ b/src/main.rs @@ -131,11 +131,9 @@ fn run() -> Result<(), Error> { } } - if cfg!(target_os = "macos") { - if let Some(brew) = utils::which("brew") { - terminal.print_separator("Homebrew"); - run_homebrew(&brew).report("Homebrew", &mut reports); - } + if let Some(brew) = utils::which("brew") { + terminal.print_separator("Brew"); + run_homebrew(&brew).report("Brew", &mut reports); } git_repos.insert(home_path(".emacs.d"));