Skip to content

Commit

Permalink
Merge pull request #8 from rolandwalker/adobe-air-apps-whitespace
Browse files Browse the repository at this point in the history
indent should be two spaces, no tabs
  • Loading branch information
vmrob committed Feb 11, 2014
2 parents 6773965 + 6776f45 commit 8ae33ca
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/cask/container/air.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ def self.me?(criteria)
end

def extract
executable = '/Applications/Utilities/Adobe AIR Application Installer.app/Contents/MacOS/Adobe AIR Application Installer'
executable = '/Applications/Utilities/Adobe AIR Application Installer.app/Contents/MacOS/Adobe AIR Application Installer'
args = ['-silent', '-location', @cask.destination_path, @path]

if !Pathname(executable).exist?
raise CaskError.new(<<-ERRMSG)
raise CaskError.new(<<-ERRMSG)
Error installing application: Adobe Air runtime not present, try installing via `brew cask install adobe-air`
ERRMSG
end

begin
@command.run!(executable, :args => args)
rescue
raise CaskError.new(<<-ERRMSG)
begin
@command.run!(executable, :args => args)
rescue
raise CaskError.new(<<-ERRMSG)
Error installing application.
command was:
#{executable} #{args.map { |arg| arg }.join(' ')}
Expand Down

0 comments on commit 8ae33ca

Please sign in to comment.