From 4e921ab218caf972054df9b1042ccdf2e3e3a7f1 Mon Sep 17 00:00:00 2001 From: Jeff Hann Date: Fri, 13 Sep 2013 11:34:39 -0300 Subject: [PATCH] fixing a bug --- archey.rb | 6 ++---- bin/archey | 4 ++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/archey.rb b/archey.rb index 8dda607..ecd6117 100644 --- a/archey.rb +++ b/archey.rb @@ -1,14 +1,12 @@ require 'formula' -# Documentation: https://github.com/mxcl/homebrew/wiki/Formula-Cookbook -# PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST! - class Archey < Formula homepage 'http://obihann.github.io/archey-osx/' - #url 'https://github.com/obihann/archey-osx/archive/1.0.tar.gz' url 'https://github.com/obihann/archey-osx.git' sha1 '5a470715fadb38b3d78bb296e3c881af53df08a0' + version "1.0" def install + system "cp bin/archey #{prefix}/" end end diff --git a/bin/archey b/bin/archey index e1bfe5d..265e459 100755 --- a/bin/archey +++ b/bin/archey @@ -45,9 +45,9 @@ fi # Add a -m command to switch to macports or default to brew if [[ $1 == "-m" ]] || [[ $1 == "--macports" ]] || [[ $2 == "-m" ]] || [[ $2 == "--macports" ]] then - packagehandler="`brew list -l | wc -l | awk '{print $1 }'`" -else packagehandler="`port installed | wc -l | awk '{print $1 }'`" +else + packagehandler="`brew list -l | wc -l | awk '{print $1 }'`" fi userText="${textColor}User:${normal}"