Skip to content

Commit b0a41de

Browse files
committed
Fix bug in System::Info plugin
1 parent 71ff59b commit b0a41de

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

cpanfile.ci

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ requires "Linux::Inotify2" => "0";
1010
requires "System::Info" => "0.064";
1111
requires "Term::ANSIColor" => "4.06";
1212
requires "Term::ReadLine" => "0";
13+
requires "Module::Pluggable" => "5.2";

lib/App/Yath/Plugin/SysInfo.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ sub run_fields {
2828
user => $ENV{USER},
2929
shell => $ENV{SHELL},
3030
term => $ENV{TERM},
31-
(map { m/(YATH|T2|TEST2|HARNESS|PERL|CPAN|TAP)/i ? ($_ => $ENV{$_}) : ()} grep keys %ENV),
31+
(map { m/(YATH|T2|TEST2|HARNESS|PERL|CPAN|TAP)/i ? ($_ => $ENV{$_}) : ()} keys %ENV),
3232
},
3333

3434
ipc => {

0 commit comments

Comments
 (0)