summaryrefslogtreecommitdiff
path: root/lib/shell/system-command.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/shell/system-command.rb')
-rw-r--r--lib/shell/system-command.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/shell/system-command.rb b/lib/shell/system-command.rb
index c22b9ac0a4d..6071c1c841d 100644
--- a/lib/shell/system-command.rb
+++ b/lib/shell/system-command.rb
@@ -15,8 +15,8 @@ require "shell/filter"
class Shell
class SystemCommand < Filter
def initialize(sh, command, *opts)
- if t = opts.find{|opt| !opt.kind_of?(String) && opt.type}
- Shell.Fail TypeError, t.type, "String"
+ if t = opts.find{|opt| !opt.kind_of?(String) && opt.class}
+ Shell.Fail TypeError, t.class, "String"
end
super(sh)
@command = command