diff options
Diffstat (limited to 'lib/shell/system-command.rb')
-rw-r--r-- | lib/shell/system-command.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/shell/system-command.rb b/lib/shell/system-command.rb index 767a9ee12c..9d1b07e98c 100644 --- a/lib/shell/system-command.rb +++ b/lib/shell/system-command.rb @@ -147,7 +147,7 @@ class Shell # yorn: Boolean(@shell.debug? or @shell.verbose?) def notify(*opts) @shell.notify(*opts) do |mes| - yield mes if iterator? + yield mes if block_given? mes.gsub!("%id", "#{@command}:##{@pid}") mes.gsub!("%name", "#{@command}") |