Skip to content

Commit e0ab5e7

Browse files
committed
Fix Rexfile path in loading messages
1 parent 1e84c07 commit e0ab5e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Rex/CLI.pm

+2-2
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@ sub load_rexfile {
767767
s{/loader/[^/]+/}{}sxm;
768768

769769
# convert Rexfile to human-friendly name
770-
s{__Rexfile__.pm}{Rexfile}msx;
770+
s{__Rexfile__.pm}{$rexfile}msx;
771771

772772
Rex::Logger::info( "\t$_", 'warn' );
773773
}
@@ -785,7 +785,7 @@ sub load_rexfile {
785785
$e =~ s|/loader/[^/]+/||smg;
786786

787787
# convert Rexfile to human-friendly name
788-
$e =~ s{__Rexfile__.pm}{Rexfile}msx;
788+
$e =~ s{__Rexfile__.pm}{$rexfile}gmsx;
789789

790790
my @lines = split( $/, $e );
791791

0 commit comments

Comments
 (0)