diff --git a/lib/cask/system_command.rb b/lib/cask/system_command.rb index 024673615..ce2519ed2 100644 --- a/lib/cask/system_command.rb +++ b/lib/cask/system_command.rb @@ -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