don't choke when :args is not present

in _process_options
This commit is contained in:
Roland Walker 2014-02-10 10:53:30 -05:00
parent f61324071a
commit 7d8abee751

View file

@ -37,7 +37,8 @@ class Cask::SystemCommand
if options[:sudo]
command.unshift('/usr/bin/sudo', '-E', '--')
end
if ! options[:args].empty?
if options.key?(:args) and
! options[:args].empty?
command.concat options[:args]
end
command