Skip to content

Commit ad3e34e

Browse files
committed
Show Rexfile path in loading messages
1 parent 84e0a79 commit ad3e34e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Revision history for Rex
1313
- Correct example for file_read command
1414

1515
[ENHANCEMENTS]
16+
- Show Rexfile path in loading messages
1617

1718
[MAJOR]
1819

lib/Rex/CLI.pm

Lines changed: 2 additions & 2 deletions
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)