Skip to content
This repository has been archived by the owner on Feb 14, 2020. It is now read-only.

Commit

Permalink
fixing a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Hann committed Sep 13, 2013
1 parent 261370a commit 4e921ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions archey.rb
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions bin/archey
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 4e921ab

Please sign in to comment.