Fix relative symlink resolution, again

/foo/a -> b means a must get removed from the result.
This commit is contained in:
Nero 2018-03-16 04:21:43 +00:00
parent c089ff4a3a
commit 2e15c4c71d

View File

@ -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