We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12eabad commit 4d9892cCopy full SHA for 4d9892c
lib/Rex/CLI.pm
@@ -767,7 +767,7 @@ sub load_rexfile {
767
s{/loader/[^/]+/}{}sxm;
768
769
# convert Rexfile to human-friendly name
770
- s{__Rexfile__.pm}{Rexfile}msx;
+ s{__Rexfile__.pm}{$rexfile}msx;
771
772
Rex::Logger::info( "\t$_", 'warn' );
773
}
@@ -785,7 +785,7 @@ sub load_rexfile {
785
$e =~ s|/loader/[^/]+/||smg;
786
787
788
- $e =~ s{__Rexfile__.pm}{Rexfile}msx;
+ $e =~ s{__Rexfile__.pm}{$rexfile}gmsx;
789
790
my @lines = split( $/, $e );
791
0 commit comments