Fix relative symlink resolution, again
/foo/a -> b means a must get removed from the result.
This commit is contained in:
parent
c089ff4a3a
commit
2e15c4c71d
1 changed files with 1 additions and 0 deletions
|
@ -53,6 +53,7 @@ while [ -n "$left" ]; do
|
||||||
*)
|
*)
|
||||||
# Relative symlink: Keep $result, its the symlink base
|
# Relative symlink: Keep $result, its the symlink base
|
||||||
left="${target}/${left}"
|
left="${target}/${left}"
|
||||||
|
result="${result%/*}"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue