Skip to content

Commit

Permalink
fix a bug for paths reading
Browse files Browse the repository at this point in the history
  • Loading branch information
oushujun committed May 31, 2017
1 parent 7c659ce commit d472e17
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion LTR_retriever
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,10 @@ while (<Path>){
next unless /=/;
chomp;
my ($program, $path)=(split /=/, $_, 2);
$path=~s/\s+?#.*$//;
$path=~s/(\s+)?#.*$//;
$path=~s/\s+//g;
$path="$path"."/" if $path!~/\/$/;
$path='' if $path eq '/';
$path{$program}=$path;
}
close Path;
Expand Down

0 comments on commit d472e17

Please sign in to comment.