Skip to content

Commit

Permalink
fixed -f option in case of non existing
Browse files Browse the repository at this point in the history
  • Loading branch information
rcmdnk committed Nov 10, 2014
1 parent ecf0e41 commit 247732b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions bin/brew-file
Expand Up @@ -13,8 +13,8 @@ __author__ = "rcmdnk"
__copyright__ = "Copyright (c) 2013 rcmdnk"
__credits__ = ["rcmdnk"]
__license__ = "MIT"
__version__ = "v2.1.2"
__date__ = "2/Nov/2014"
__version__ = "v2.1.3"
__date__ = "11/Nov/2014"
__maintainer__ = "rcmdnk"
__email__ = "rcmdnk@gmail.com"
__status__ = "Prototype"
Expand Down Expand Up @@ -281,6 +281,7 @@ class BrewFile:
def check_repo(self):
"""Check input file for GitHub repository."""
import re
self.opt["brewfile"] = self.opt["input"]

# Check input file
if not os.path.exists(self.opt["input"]):
Expand Down Expand Up @@ -374,7 +375,7 @@ class BrewFile:
"""Check Homebrew"""
if self.proc("brew help", False, False, False)[0] != 0:
print "Homebrew has not been installed, install now..."
cmd="ruby -e \"$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)\""
cmd="ruby -e \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)\""
self.proc(cmd)
(ret, lines) = self.proc("brew doctor", True, True, False)
if ret != 0:
Expand Down
2 changes: 1 addition & 1 deletion brew-file.rb
@@ -1,6 +1,6 @@
require 'formula'

HOMEBREW_BREW_FILE_VERSION = '2.1.2'
HOMEBREW_BREW_FILE_VERSION = '2.1.3'
HOMEBREW_BREW_FILE_BASH_VERSION = '1.1.8'
class BrewFile < Formula
homepage 'https://github.com/rcmdnk/homebrew-file/'
Expand Down

0 comments on commit 247732b

Please sign in to comment.