aboutsummaryrefslogtreecommitdiffstats
path: root/lib/shell.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/shell.rb')
-rw-r--r--lib/shell.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/shell.rb b/lib/shell.rb
index 77b3b97ed3..095889626a 100644
--- a/lib/shell.rb
+++ b/lib/shell.rb
@@ -263,7 +263,7 @@ class Shell
def chdir(path = nil, verbose = @verbose)
check_point
- if iterator?
+ if block_given?
notify("chdir(with block) #{path}") if verbose
cwd_old = @cwd
begin
@@ -297,7 +297,7 @@ class Shell
def pushdir(path = nil, verbose = @verbose)
check_point
- if iterator?
+ if block_given?
notify("pushdir(with block) #{path}") if verbose
pushdir(path, nil)
begin
@@ -446,7 +446,7 @@ class Shell
_head = true
STDERR.print opts.collect{|mes|
mes = mes.dup
- yield mes if iterator?
+ yield mes if block_given?
if _head
_head = false
prefix + mes