lib/myosx.rb in myosx-0.2.5 vs lib/myosx.rb in myosx-0.2.6
- old
+ new
@@ -7,9 +7,14 @@
module Myosx
class Exec < Config
def initialize
Config.new.create_workspace(Config.new.workspace_directory)
+ unless system("which brew >/dev/null 2>&1")
+ puts "Error: can't find homebrew in PATH."
+ exit
+ end
+
if Config.new.global['dotfiles']
Dotfiles.new.exec
end
if Config.new.global['homebrew']