Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix bug where Morbo would ignore the --verbose option
  • Loading branch information
kraih committed Mar 16, 2016
1 parent aea16c6 commit 6bfc03a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Changes
Expand Up @@ -3,6 +3,7 @@
- Added hidden option to list_files method in Mojo::Home. (batman, sri)
- Added hidden option to files function in Mojo::Util. (batman, sri)
- Fixed bug where Morbo would not ignore hidden files. (batman, sri)
- Fixed bug where Morbo would ignore the --verbose option.
- Fixed keep-alive bug in Mojo::UserAgent. (jberger)

6.55 2016-03-08
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/Server/Morbo.pm
Expand Up @@ -59,7 +59,7 @@ sub _manage {
say @files == 1
? qq{File "@{[$files[0]]}" changed, restarting.}
: qq{@{[scalar @files]} files changed, restarting.}
if $ENV{MORBO_DEBUG};
if $ENV{MORBO_VERBOSE};
kill 'TERM', $self->{worker} if $self->{worker};
$self->{modified} = 1;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/Util.pm
Expand Up @@ -133,7 +133,7 @@ sub files {
local $File::Find::skip_pattern = qr/^\./ unless $options->{hidden};

my %files;
my $want = sub { $files{$_}++ };
my $want = sub { $files{$File::Find::name}++ };
my $post = sub { delete $files{$File::Find::dir} };
find {wanted => $want, postprocess => $post, no_chdir => 1}, $dir if -d $dir;

Expand Down

0 comments on commit 6bfc03a

Please sign in to comment.