mirror of
https://github.com/donl/homebrew-cask-versions.git
synced 2026-07-18 22:06:41 -06:00
don't choke when :args is not present
in _process_options
This commit is contained in:
parent
f61324071a
commit
7d8abee751
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue