mirror of
https://github.com/fspc/gbootroot.git
synced 2025-02-23 09:03:23 -05:00
More changes to make_link_absolute, since return value and value (what Tom had a tendency
to do) don't mix and match happily.
This commit is contained in:
parent
c8a2ebb971
commit
0248fba79e
@ -1724,11 +1724,14 @@ sub make_link_absolute {
|
|||||||
my $link;
|
my $link;
|
||||||
|
|
||||||
if ($target =~ m|^/|) {
|
if ($target =~ m|^/|) {
|
||||||
$target; # Target is absolute, just return it
|
return $target; # Target is absolute, just return it
|
||||||
} else {
|
} else { ## and use return --freesource
|
||||||
$link =cleanup_link(dirname($file) . "/$target");
|
|
||||||
|
$link = cleanup_link(dirname($file) . "/$target");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$link =~ s,^\.,,; # When there is one file dir eq . --freesource
|
$link =~ s,^\.,,; # When there is one file dir eq . --freesource
|
||||||
|
|
||||||
return $link;
|
return $link;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user