Skip to content

Commit

Permalink
Fix Rexfile path in loading messages
Browse files Browse the repository at this point in the history
  • Loading branch information
ferki committed Jan 29, 2023
1 parent 1e84c07 commit e0ab5e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Rex/CLI.pm
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@ sub load_rexfile {
s{/loader/[^/]+/}{}sxm;

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

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

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

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

Expand Down

0 comments on commit e0ab5e7

Please sign in to comment.