Skip to content

Commit

Permalink
Merge pull request #182 from rtpt-alex/fix-ruby-relative-path
Browse files Browse the repository at this point in the history
Make source path absolute for Ruby scripts
  • Loading branch information
liske authored Jul 5, 2020
2 parents 29a4282 + 1b49033 commit d97f59b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion perl/lib/NeedRestart/Interp/Ruby.pm
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ sub files {
print STDERR "$LOGPREF #$pid: could not get a source file, skipping\n" if($self->{debug});
return ();
}
my $src = $ARGV[0];
my $src = abs_path($ARGV[0]);
unless(-r $src && -f $src) {
chdir($cwd);
print STDERR "$LOGPREF #$pid: source file '$src' not found, skipping\n" if($self->{debug});
Expand Down

0 comments on commit d97f59b

Please sign in to comment.